Skip to content

Constrain restored window size to monitor work area - #1104

Open
rafaumeu wants to merge 1 commit into
linuxmint:masterfrom
rafaumeu:fix/window-bounds-workarea
Open

rafaumeu wants to merge 1 commit into
linuxmint:masterfrom
rafaumeu:fix/window-bounds-workarea

Conversation

@rafaumeu

Copy link
Copy Markdown

Fixes #1057.

Saved window dimensions can exceed the current monitor work area after a display configuration change, or be invalid.

Restore the saved size within the window monitor work area, with a valid lower bound, falling back to the saved dimensions when monitor detection is unavailable.

Tested with python3 -m py_compile usr/lib/linuxmint/mintUpdate/mintUpdate.py, git diff --check, and a local GTK/Gdk work-area bounds harness. ./test was not run because it modifies /usr.

AI-assisted research and draft; independently reviewed and tested locally.

@rafaumeu
rafaumeu force-pushed the fix/window-bounds-workarea branch from 2b0a2cc to 438ac62 Compare October 26, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Window fills the entire screen but isn't maximized

1 participant