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

Method tileWindows

src/manager/layoutManager.ts:197–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 // }
196
197 tileWindows() {
198 if (this.tilingInProgress) return;
199
200 this.tilingInProgress = true;
201 GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
202 for (const monitor of Main.layoutManager.monitors) {
203 let msWorkspace;
204 if (monitor.index === Main.layoutManager.primaryIndex) {
205 msWorkspace =
206 Me.msWorkspaceManager!.getActivePrimaryMsWorkspace();
207 } else {
208 msWorkspace =
209 Me.msWorkspaceManager!.getMsWorkspacesOfMonitorIndex(
210 monitor.index
211 )[0];
212 }
213 const layout = msWorkspace.layout;
214
215 layout.tileAll();
216 //this.dialogLayout.onTile(dialogWindows, monitor);
217 }
218
219 this.tilingInProgress = false;
220 return GLib.SOURCE_REMOVE;
221 });
222 }
223}

Callers 1

constructorMethod · 0.95

Calls 3

tileAllMethod · 0.45

Tested by

no test coverage detected