Fix Windows main window restoring off-screen after fullscreen (fixes #26) #69
No reviewers
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-collab/bulk-image-organizer!69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "0.1.25/issue-26-window-offscreen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #26 — on Windows, reopening the app after a fullscreen session could place the main window above the visible desktop so the title bar and window controls were unreachable.
Root cause
Session restore saved
frameGeometry()but applied values throughsetGeometry(). On Windows those APIs disagree about client vs. frame size, so a fullscreen-sized rect could push the title bar above the work area when Qt tried to avoid the taskbar.Changes
session_state.py: Persist QtsaveGeometry()(qt_geometry) and targetscreenname for platform-correct restore.setGeometry; re-enter fullscreen on the saved monitor viawindowHandle().setScreen()+showFullScreen().availableGeometry.main_window.py: Remove duplicate deferredshowFullScreen(handled in session restore).test_pr13_config.pywith qt-geometry round-trip, fullscreen re-entry, and legacy off-screen rect cases.Verification
ruff check/ruff format --checkpytest tests/test_pr13_config.py(25 passed)./scripts/check-version-bump.shVersion
0.1.26(patch)