(
window: WaylandWindow,
rect: ManagedWindowRect,
pointerX: number,
)
| 3569 | if (index < 0) { |
| 3570 | return; |
| 3571 | } |
| 3572 | this.windows.splice(index, 1); |
| 3573 | this.draggingWindowId = null; |
| 3574 | } |
| 3575 | |
| 3576 | public removeFloatingWindow(window: WaylandWindow) { |
| 3577 | const index = this.windows.findIndex((current) => current.id === window.id); |
| 3578 | if (index < 0) { |
| 3579 | return; |
| 3580 | } |
| 3581 | this.windows.splice(index, 1); |
| 3582 | if (this.activeWindowId === window.id) { |
| 3583 | this.activeWindowId = |
| 3584 | this.activeWindow(this.tileableWindows())?.id ?? null; |
| 3585 | } |
| 3586 | } |
| 3587 | |
| 3588 | public hasWindow(window: WaylandWindow): boolean { |
| 3589 | return this.windows.some((current) => current.id === window.id); |
| 3590 | } |
| 3591 |
no test coverage detected