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

Method onWindowFocus

src/manager/msFocusManager.ts:89–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 }
88
89 onWindowFocus(): void {
90 const windowFocus =
91 global.display.get_focus_window() as MetaWindowWithMsProperties;
92
93 if (!windowFocus || !windowFocus.msWindow) return;
94
95 const msWindow = windowFocus.msWindow;
96 msWindow.focusDialogs();
97 this.setFocusToMsWindow(msWindow);
98 }
99
100 setFocusToMsWindow(msWindow: MsWindow): void {
101 if (msWindow === this.lastMsWindowFocused) return;

Callers

nothing calls this directly

Calls 3

setFocusToMsWindowMethod · 0.95
get_focus_windowMethod · 0.80
focusDialogsMethod · 0.80

Tested by

no test coverage detected