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

Method moveTileWindowToIndex

packages/config/src/window-manager.ts:4032–4059  ·  view source on GitHub ↗
(window: WaylandWindow, tileIndex: number)

Source from the content-addressed store, hash-verified

4030
4031 if (tileable.length === 0) {
4032 this.activeWindowId = null;
4033 hotReloadDebug("workspace-apply-layout-empty", {
4034 monitor: this.monitor,
4035 index: this.index,
4036 animate,
4037 suppressSSDRebuild,
4038 canSuppress,
4039 floatingWindowIds: this.floatingWindows().map((window) => window.id),
4040 });
4041 this.applyFloatingLayout(
4042 animationOptions,
4043 animate,
4044 options.immediateFloatingWindowIds,
4045 );
4046 return;
4047 }
4048
4049 if (
4050 !this.activeWindowId ||
4051 !tileable.some((window) => window.id === this.activeWindowId)
4052 ) {
4053 if (!options.preserveMissingActive) {
4054 this.activeWindowId = tileable.at(-1)?.id ?? null;
4055 }
4056 }
4057
4058 const viewportRect = this.tileViewportRect();
4059 this.lastAppliedTileViewportRect = snapshotManagedRect(viewportRect);
4060 const tileHeight = read(viewportRect.height);
4061 let nextX = read(viewportRect.x) - this.physicalAlignedScrollOffset();
4062 const appliedRects: Record<string, ManagedWindowRect> = {};

Callers 2

moveFocusedTileMethod · 0.95
updateTileDragMethod · 0.95

Calls 2

tileableWindowsMethod · 0.95
shouldTileMethod · 0.95

Tested by

no test coverage detected