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

video: Prefer the window manager supplied coordinates for selecting a… #11621

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

Kontrabant
Copy link
Contributor

… fullscreen display

Unless there are pending client requested window coordinates, such as in the case where the position is set followed by immediately by entering fullscreen, prefer the true window coordinates as sent by the window manager to select a fullscreen display.

Fixes the case where, if the window manager moves an already maximized window to another display, the window would be made fullscreen on the wrong display since the last floating coordinates would be used. It also has the side effect of fixing the repositioning of fullscreen windows on X11 under certain circumstances.

Fixes #11571

… fullscreen display

Unless there are pending client requested window coordinates, such as in the case where the position is set followed by immediately by entering fullscreen, prefer the true window coordinates as sent by the window manager to select a fullscreen display.

Fixes the case where, if the window manager moves an already maximized window to another display, the window would be made fullscreen on the wrong display since the last floating coordinates would be used.
@Kontrabant Kontrabant merged commit 5447cb6 into libsdl-org:main Dec 9, 2024
1 check passed
@Kontrabant Kontrabant deleted the maximized_fs_fix branch December 9, 2024 16:50
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.

[SDL3]SDL_SetWindowFullscreen makes the window fullscreen on the wrong monitor
1 participant