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

Method tileLeftForIndex

packages/config/src/window-manager.ts:4331–4341  ·  view source on GitHub ↗
(
    tileable: WaylandWindow[],
    index: number,
    viewportRect: ManagedWindowRect,
  )

Source from the content-addressed store, hash-verified

4329 a: WaylandWindow,
4330 b: WaylandWindow,
4331 ): boolean {
4332 const transient = !this.shouldTile(a) && a.isTransient() ? a : null;
4333 const other =
4334 transient === a ? b : !this.shouldTile(b) && b.isTransient() ? b : null;
4335 if (!transient || !other || transient.parentId()) {
4336 return false;
4337 }
4338
4339 const transientAppId = transient.appId();
4340 return transientAppId !== undefined && transientAppId === other.appId();
4341 }
4342
4343 private reapplyStaticManagedLayout(): void {
4344 if (!this.isTiled) {

Callers 1

scrollToWindowMethod · 0.95

Calls 1

tileWidthForWindowMethod · 0.95

Tested by

no test coverage detected