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

win32: Keep the window on the last maximized display when leaving ful… #12254

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

Kontrabant
Copy link
Contributor

@Kontrabant Kontrabant commented Feb 10, 2025

…lscreen

A window may have been maximized by dragging it to the top of another display, in which case the base floating position may be out-of-date. If the window is leaving fullscreen to maximized, and the maximized and floating position are on different displays, try to center the base window position on the maximized display for restoration, which mimics native Windows behavior.

Fixes ##11571 (regression)

…lscreen

A window may have been maximized by dragging it to the top of another display, in which case the floating position may be out-of-date. If the window is being restored to maximized, and the maximized and floating position are on different displays, try to center the window on the maximized display for restoration, which mimics native Windows behavior.
@Kontrabant Kontrabant merged commit da464e9 into libsdl-org:main Feb 10, 2025
1 check passed
@Kontrabant Kontrabant deleted the win32_maximize_fs_leave branch February 10, 2025 20:06
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