( window: WaylandWindow, visible: boolean, )
| 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 { |
no test coverage detected