MCPcopy Create free account
hub / github.com/bea4dev/ShojiWM / resizeTile

Method resizeTile

packages/config/src/window-manager.ts:3480–3509  ·  view source on GitHub ↗
(event: WindowResizeEvent)

Source from the content-addressed store, hash-verified

3478 window.state[WINDOW_STATE_RECT].set(this.centeredFloatingRect(window));
3479 }
3480 hotReloadDebug("workspace-add-window", {
3481 monitor: this.monitor,
3482 index: this.index,
3483 windowId: window.id,
3484 restored: restored !== undefined,
3485 isTiledWorkspace: this.isTiled,
3486 shouldTile: this.shouldTile(window),
3487 activeWindowId: this.activeWindowId,
3488 windowIds: this.windows.map((window) => window.id),
3489 rect: window.state[WINDOW_STATE_RECT](),
3490 floatingRect: window.state[WINDOW_STATE_FLOATING_RECT](),
3491 });
3492 return restored !== undefined;
3493 }
3494
3495 private rememberInitialTileState(
3496 window: WaylandWindow,
3497 scrollOffset: number,
3498 activeWindowId: string | null,
3499 ): void {
3500 const token = ++this.initialTileStateToken;
3501 this.initialTileStateByWindowId.set(window.id, {
3502 scrollOffset,
3503 activeWindowId,
3504 token,
3505 });
3506 setTimeout(() => {
3507 if (this.initialTileStateByWindowId.get(window.id)?.token === token) {
3508 this.initialTileStateByWindowId.delete(window.id);
3509 }
3510 }, INITIAL_TILEABILITY_SETTLE_DURATION);
3511 }
3512

Callers 1

onWindowResizeMethod · 0.80

Calls 10

tileableWindowsMethod · 0.95
tileViewportRectMethod · 0.95
minTileWidthMethod · 0.95
maxTileWidthMethod · 0.95
scrollToWindowMethod · 0.95
applyLayoutMethod · 0.95
stopRectAnimationFunction · 0.90
clampFunction · 0.85
unmaximizeMethod · 0.80
setMethod · 0.65

Tested by

no test coverage detected