Commit Graph
6 Commits
Author SHA1 Message Date
Lukas 4f849a1512 macOS: fix window position for the very first window 2026-03-12 15:42:29 +01:00
Lukas d6dfaf28fe macOS: support injecting temporary defaults when testing 2026-03-12 13:16:55 +01:00
Lukas 596d502a75 macOS: restore window frame under certain conditions 2026-03-11 17:45:10 +01:00
Lukas e8c82ca1af macOS: save frame only if the window is visible 2026-03-11 17:45:09 +01:00
A-AKB 0db32ab9a8 macos: fix window size/position restoration on Cmd+W close
This fixes two overlapping issues regarding window positioning and Cmd+W window closures on macOS:

1. `window-position-x` and `window-position-y` coordinates were being ignored on initial launch because `TerminalWindow.setInitialWindowPosition` depended on the `TerminalController`, which isn't fully attached during `awakeFromNib`. This logic was moved so explicit coordinates are correctly enforced.
2. When closing a window via Cmd+W (leaving the app active), reopening the window would continuously cascade down and to the right rather than restoring to the previous position. It now checks if there are other windows open before cascading.
3. `LastWindowPosition` was updated to save both the frame origin and size (width/height), ensuring that restoring a closed window correctly mimics native AppKit State Restoration size behaviors while honoring explicit configurations.
2026-02-28 01:34:18 +01:00
Bryan Lee 31273aaabc Remember last focused window position for next startup 2025-02-11 12:33:29 -08:00