MCPcopy
hub / github.com/paperwm/PaperWM / finish

Method finish

tiling.js:2312–2333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 => {

Callers 5

doneFunction · 0.45
glideFunction · 0.45
constructorMethod · 0.45
navFinishMethod · 0.45
_onEventMethod · 0.45

Calls 5

mruMethod · 0.95
setMonitorsMethod · 0.95
activateMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected