Skip to content

Fix window content layout and restore behavior from system tray#5152

Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
fix/5117-maximize-work-area
Jul 20, 2026
Merged

Fix window content layout and restore behavior from system tray#5152
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
fix/5117-maximize-work-area

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request makes targeted improvements to how the application window behaves on Windows, especially regarding maximizing and restoring from the system tray. The changes ensure the window is correctly sized and positioned when maximized and that restoring from the tray maintains the expected window state.

Window Management Improvements:

  • When the window is maximized, the client area now matches the monitor's work area exactly, preventing UI elements from being clipped or positioned offscreen. This replaces the previous logic that applied a phantom frame inset.
  • When restoring the window from the system tray, the code now checks if the window was maximized before being hidden and reapplies the maximized state if needed. This ensures consistent behavior, especially when the maximize state wasn't tracked by the UI framework.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves Windows window sizing and tray restoration behavior.

Changes:

  • Aligns maximized client bounds with the monitor work area.
  • Restores maximized state after reopening from the system tray.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit a9168b6 into main Jul 20, 2026
6 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the fix/5117-maximize-work-area branch July 20, 2026 19:50
@GabrielDuf Gabriel Dufresne (GabrielDuf) linked an issue Jul 20, 2026 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Maximize window is cropped

3 participants