-
Notifications
You must be signed in to change notification settings - Fork 171
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
Save/Restore on 2nd screen not working with aerosnap #553
Comments
The bug is related to "normal geometry", aka the geometry the window should get when shown in a non-maximized state. When we save layout, in this case, "normalGeometry" is of 1st screen, while window is in 2nd screen maximized. |
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.
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.
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.
Windows 11 / Qt 6:
Unexpectedly window restores on screen 1.
Not repro with Qt 5.
Not repro if you maximize via titlebar double click
Reproduced initially by bbc on #508
The text was updated successfully, but these errors were encountered: