You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Linux window size not persisting across logout/login
On Linux with HiDPI/fractional scaling, window size was not properly restored
after logout and login. The issue was caused by:
1. Window bounds saved as logical pixels (scaled by display scale factor)
2. After logout/login, display scale might differ
3. Saved logical pixels resulted in different physical window sizes
Changes:
- Add scaleFactor field to lastWindowState config
- Save display scale factor when storing window state
- Adjust window size on Linux based on scale factor changes
- Add SIGTERM/SIGHUP handlers to save state during shutdown
- Validate window dimensions before saving
This ensures the window maintains the same physical size regardless of
display scaling changes between sessions.
0 commit comments