()
| 2438 | } |
| 2439 | |
| 2440 | destroy() { |
| 2441 | for (let overlay of this.clickOverlays) { |
| 2442 | overlay.destroy(); |
| 2443 | } |
| 2444 | for (let monitor of Main.layoutManager.monitors) { |
| 2445 | delete monitor.clickOverlay; |
| 2446 | } |
| 2447 | |
| 2448 | display.get_tab_list(Meta.TabList.NORMAL_ALL, null) |
| 2449 | .forEach(metaWindow => { |
| 2450 | let actor = metaWindow.get_compositor_private(); |
| 2451 | actor.remove_clip(); |
| 2452 | |
| 2453 | if (metaWindow.clone) { |
| 2454 | metaWindow.clone.destroy(); |
| 2455 | metaWindow.clone = null; |
| 2456 | } |
| 2457 | |
| 2458 | metaWindow._targetHeight = null; |
| 2459 | metaWindow._targetWidth = null; |
| 2460 | |
| 2461 | if ( |
| 2462 | metaWindow.get_workspace() === workspaceManager.get_active_workspace() && |
| 2463 | !metaWindow.minimized |
| 2464 | ) { |
| 2465 | actor.show(); |
| 2466 | } |
| 2467 | else { |
| 2468 | actor.hide(); |
| 2469 | } |
| 2470 | }); |
| 2471 | |
| 2472 | this.signals.destroy(); |
| 2473 | this.signals = null; |
| 2474 | |
| 2475 | // remove spaces |
| 2476 | for (let [, space] of this) { |
| 2477 | this.removeSpace(space); |
| 2478 | } |
| 2479 | |
| 2480 | this.spaceContainer.destroy(); |
| 2481 | this.spaceContainer = null; |
| 2482 | } |
| 2483 | |
| 2484 | workspacesChanged() { |
| 2485 | let nWorkspaces = workspaceManager.n_workspaces; |
nothing calls this directly
no test coverage detected