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

Method captureFloatingRect

packages/config/src/window-manager.ts:4061–4070  ·  view source on GitHub ↗
(window: WaylandWindow)

Source from the content-addressed store, hash-verified

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> = {};
4063 this.lastDraggingSlotRect = null;
4064
4065 tileable.forEach((window, index) => {
4066 const tileWidth = this.tileWidthForWindow(window, viewportRect);
4067 const rect = window.state[WINDOW_STATE_FULLSCREEN]()
4068 ? this.fullscreenRootRect(window)
4069 : window.state[WINDOW_STATE_MAXIMIZED]()
4070 ? this.maximizedTileRect(window, nextX)
4071 : {
4072 x: nextX,
4073 y: read(viewportRect.y),

Callers 1

setTiledMethod · 0.95

Calls 2

setMethod · 0.65

Tested by

no test coverage detected