()
| 978 | } |
| 979 | |
| 980 | public unsetWindow() { |
| 981 | assert( |
| 982 | this.lifecycleState.type === 'window', |
| 983 | 'Can only unset the window when in the window state' |
| 984 | ); |
| 985 | this.unregisterOnMetaWindowSignals(); |
| 986 | // Required when re-assigning windows. |
| 987 | // Normally if a window is destroyed the source is implicitly cleared because the source window doesn't exist anymore. |
| 988 | this.windowClone.set_source(null); |
| 989 | this.reactive = true; |
| 990 | this.lifecycleState = { |
| 991 | type: 'app-placeholder', |
| 992 | matchingInfo: this.lifecycleState.matchingInfo, |
| 993 | waitingForAppSince: undefined, |
| 994 | }; |
| 995 | this.onMetaWindowsChanged(); |
| 996 | } |
| 997 | |
| 998 | updateWorkspaceAndMonitor(metaWindow: Meta.Window) { |
| 999 | if (metaWindow && this.msWorkspace) { |
no test coverage detected