MCPcopy Create free account
hub / github.com/material-shell/material-shell / unsetWindow

Method unsetWindow

src/layout/msWorkspace/msWindow.ts:980–996  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

metaWindowUnManagedMethod · 0.95

Calls 4

onMetaWindowsChangedMethod · 0.95
assertFunction · 0.90
set_sourceMethod · 0.65

Tested by

no test coverage detected