()
| 2310 | } |
| 2311 | |
| 2312 | let finish = () => { |
| 2313 | /** |
| 2314 | * Gnome may select a workspace that just had it monitor removed (gone). |
| 2315 | * This this case find the next most recent space that's maintained it's |
| 2316 | * monitor, and select that. |
| 2317 | */ |
| 2318 | let recent = this.mru().filter(s => !monitorGoneSpaces.includes(s)); |
| 2319 | let activeSpace = recent?.[0] ?? this.monitors.get(primary); |
| 2320 | activeSpace.activate(false, false); |
| 2321 | |
| 2322 | this.selectedSpace = activeSpace; |
| 2323 | this.setMonitors(activeSpace.monitor, activeSpace); |
| 2324 | this.monitors.forEach(space => { |
| 2325 | space.show(); |
| 2326 | Utils.actor_raise(space.clip); |
| 2327 | }); |
| 2328 | |
| 2329 | this.spaceContainer.show(); |
| 2330 | Topbar.refreshWorkspaceIndicator(); |
| 2331 | this.forEach(s => s.setSpaceTopbarElementsVisible()); |
| 2332 | Stackoverlay.multimonitorSupport(); |
| 2333 | }; |
| 2334 | |
| 2335 | if (this.onlyOnPrimary) { |
| 2336 | this.forEach(space => { |
no test coverage detected