(event: WindowResizeEvent)
| 3478 | window.state[WINDOW_STATE_RECT].set(this.centeredFloatingRect(window)); |
| 3479 | } |
| 3480 | hotReloadDebug("workspace-add-window", { |
| 3481 | monitor: this.monitor, |
| 3482 | index: this.index, |
| 3483 | windowId: window.id, |
| 3484 | restored: restored !== undefined, |
| 3485 | isTiledWorkspace: this.isTiled, |
| 3486 | shouldTile: this.shouldTile(window), |
| 3487 | activeWindowId: this.activeWindowId, |
| 3488 | windowIds: this.windows.map((window) => window.id), |
| 3489 | rect: window.state[WINDOW_STATE_RECT](), |
| 3490 | floatingRect: window.state[WINDOW_STATE_FLOATING_RECT](), |
| 3491 | }); |
| 3492 | return restored !== undefined; |
| 3493 | } |
| 3494 | |
| 3495 | private rememberInitialTileState( |
| 3496 | window: WaylandWindow, |
| 3497 | scrollOffset: number, |
| 3498 | activeWindowId: string | null, |
| 3499 | ): void { |
| 3500 | const token = ++this.initialTileStateToken; |
| 3501 | this.initialTileStateByWindowId.set(window.id, { |
| 3502 | scrollOffset, |
| 3503 | activeWindowId, |
| 3504 | token, |
| 3505 | }); |
| 3506 | setTimeout(() => { |
| 3507 | if (this.initialTileStateByWindowId.get(window.id)?.token === token) { |
| 3508 | this.initialTileStateByWindowId.delete(window.id); |
| 3509 | } |
| 3510 | }, INITIAL_TILEABILITY_SETTLE_DURATION); |
| 3511 | } |
| 3512 |
no test coverage detected