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

Function resetWorkspaceVisualState

packages/config/src/window-manager.ts:4666–4674  ·  view source on GitHub ↗
(
  window: WaylandWindow,
  visible: boolean,
)

Source from the content-addressed store, hash-verified

4664
4665 if (this.activeWindowId === window.id) {
4666 // The slot this window has just vacated by ceasing to be tileable.
4667 const windowIndex = this.tileIndexOf(window.id);
4668 const tileable = this.tileableWindows();
4669 this.activeWindowId =
4670 (restoredInitialActiveWindowId &&
4671 tileable.some(
4672 (current) => current.id === restoredInitialActiveWindowId,
4673 )
4674 ? restoredInitialActiveWindowId
4675 : tileable[Math.min(windowIndex, tileable.length - 1)]?.id) ?? null;
4676 }
4677 } else {

Callers 1

adoptFloatingWindowMethod · 0.85

Calls 2

setMethod · 0.65

Tested by

no test coverage detected