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: Use the window coordinates to get the monitor when de-minimizi… #12011

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

Kontrabant
Copy link
Contributor

@Kontrabant Kontrabant commented Jan 17, 2025

…ng a maximized window

MonitorFromWindow can fail if called on a window being de-minimized, so fall back to using the monitor from the last window coordinates if initial retrieval fails. Fixes quirks with borderless, maximized windows on multi-monitor systems.

Partially fixes #12006

…ng a maximized window

MonitorFromWindow can fail if called on a window being de-minimized, so fall back to using the monitor from the last window coordinates if initial retrieval fails.
@Kontrabant Kontrabant marked this pull request as ready for review January 17, 2025 20:46
@Kontrabant Kontrabant merged commit 1848ce6 into libsdl-org:main Jan 17, 2025
1 check passed
@Kontrabant Kontrabant deleted the win32_monitor_fix branch January 17, 2025 20:46
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.

Base window size and position is not remembered
1 participant