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

Method takeWindowForMove

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

Source from the content-addressed store, hash-verified

3133 workspace: Workspace,
3134 nextRect: ManagedWindowRect,
3135 ): boolean {
3136 if (workspace.isTiled) {
3137 return false;
3138 }
3139
3140 const zone = event.window.state[WINDOW_STATE_SNAP_ZONE]();
3141 if (!isLayoutSnapZone(zone)) {
3142 return false;
3143 }
3144
3145 const monitor =
3146 event.window.state[WINDOW_STATE_SNAP_MONITOR]() || workspace.monitor;
3147 const base = this.monitorSnapBaseRect(monitor);
3148 if (!base) {

Callers 1

Calls 3

hasWindowMethod · 0.95
snapshotWindowMethod · 0.95
removeWindowMethod · 0.95

Tested by

no test coverage detected