()
| 2174 | // Fix for eg. space.map, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Species |
| 2175 | static get [Symbol.species]() { return Map; } |
| 2176 | constructor() { |
| 2177 | super(); |
| 2178 | this._initDone = false; |
| 2179 | this.clickOverlays = []; |
| 2180 | this.signals = new Utils.Signals(); |
| 2181 | this.stack = []; |
| 2182 | let spaceContainer = new Clutter.Actor({ name: 'spaceContainer' }); |
| 2183 | spaceContainer.hide(); |
| 2184 | this.spaceContainer = spaceContainer; |
| 2185 | this.space_defaultAnimation = true; |
| 2186 | this.space_paperwmAnimation = false; |
| 2187 | |
| 2188 | backgroundGroup.add_child(this.spaceContainer); |
| 2189 | |
| 2190 | // Hook up existing workspaces |
| 2191 | for (let i = 0; i < workspaceManager.n_workspaces; i++) { |
| 2192 | let workspace = workspaceManager.get_workspace_by_index(i); |
| 2193 | this.addSpace(workspace); |
| 2194 | } |
| 2195 | this.signals.connect(workspaceManager, 'notify::n-workspaces', |
| 2196 | () => this.workspacesChanged()); |
| 2197 | |
| 2198 | this.signals.connect(workspaceManager, 'workspaces-reordered', |
| 2199 | () => this.workspacesChanged()); |
| 2200 | |
| 2201 | const OVERRIDE_SCHEMA = 'org.gnome.mutter'; |
| 2202 | this.overrideSettings = new Gio.Settings({ schema_id: OVERRIDE_SCHEMA }); |
| 2203 | } |
| 2204 | |
| 2205 | init() { |
| 2206 | // Create extra workspaces if required |
nothing calls this directly
no test coverage detected