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

Method assignWindows

src/manager/msWindowManager.ts:172–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 }
171
172 private assignWindows() {
173 // We capture the list of all actors at the beginning and don't care about any new ones until the
174 // next time we start assigning windows.
175 const actors = global
176 .get_window_actors()
177 .filter(
178 (x) =>
179 (x.meta_window as MetaWindowWithMsProperties)
180 .handledByMaterialShell
181 );
182 // Assign all non-dialog windows first
183 this.assignNonDialogWindows(actors);
184 // Assign the dialog windows to previously existing MsWindows that fits them.
185 this.assignDialogWindows(actors);
186 }
187
188 /** Assign non-dialog windows to either existing empty MsWindows or determine that new MsWindows should be created for them.
189 *

Callers 1

Calls 4

assignDialogWindowsMethod · 0.95
filterMethod · 0.80
get_window_actorsMethod · 0.65

Tested by

no test coverage detected