Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix restoring maximized window corner case #554

Merged
merged 1 commit into from
Dec 14, 2024
Merged

Fix restoring maximized window corner case #554

merged 1 commit into from
Dec 14, 2024

Conversation

iamsergio
Copy link
Contributor

For issue #553

On Windows it's possible to have normal geometry
in a different screen than the maximized window if you drag a window across monitors and touch an
aerosnap edge.

While restoring, we need a fake setGeometry()
call to set the normal geometry, since Qt doesn't
provide QWindow::setNormalGeometry(), that resulted in the window being maximized on the wrong window.

The solution is to patch the normal geometry to be in the first screen.

Copy link
Contributor

Reference images commit created. Review carefully, merge or discard it: KDAB/kddockwidgets-reference-test-screenshots@main...update/554

For issue #553

On Windows it's possible to have normal geometry
in a different screen than the maximized window if
you drag a window across monitors and touch an
aerosnap edge.

While restoring, we need a fake setGeometry()
call to set the normal geometry, since Qt doesn't
provide QWindow::setNormalGeometry(), that resulted
in the window being maximized on the wrong window.

The solution is to patch the normal geometry to be
in the first screen.
Copy link
Contributor

Reference images commit created. Review carefully, merge or discard it: KDAB/kddockwidgets-reference-test-screenshots@main...update/554

iamsergio pushed a commit to KDAB/kddockwidgets-reference-test-screenshots that referenced this pull request Dec 14, 2024
iamsergio added a commit to KDAB/kddockwidgets-reference-test-screenshots that referenced this pull request Dec 14, 2024
@iamsergio iamsergio merged commit 7178b16 into main Dec 14, 2024
42 checks passed
@iamsergio iamsergio deleted the fix/553 branch December 14, 2024 23:53
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.

1 participant