8000 x11: Fixes for fullscreen by Kontrabant · Pull Request #13115 · libsdl-org/SDL · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

x11: Fixes for fullscreen #13115

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

8000
Merged
merged 2 commits into from
May 24, 2025
Merged

x11: Fixes for fullscreen #13115

merged 2 commits into from
May 24, 2025

Conversation

Kontrabant
Copy link
Contributor

Non-compositing window managers seem to always need the fullscreen dimensions sent, so do this universally, except on XWayland, where doing so seems to cause hitching in certain cases.

Some compositors/window managers don't actually send MapNotify or PropertyNotify when mapping the window, which didn't clear the flag used to prevent the initial state from being mangled, and could keep windows from leaving fullscreen.

Fixes #13104
Fixes libsdl-org/sdl2-compat#491

More non-compositing window managers than just openbox seem to need this, so always force sending the window position and dimensions when entering/leaving fullscreen. If they are wrong, they will be immediately overwritten by the correct dimensions from a subsequent ConfigureNotify event.

This is disabled on XWayland, as it seems to cause hitching on some compositors.
Not all window managers send a MapNotify or PropertyNotify event when the window is shown, so assume that it was mapped and set the flag accordingly.
@Kontrabant Kontrabant merged commit b70919e into libsdl-org:main May 24, 2025
2 checks passed
@Kontrabant Kontrabant deleted the x_fs_dim branch May 24, 2025 13:59
@Kontrabant
Copy link
Contributor Author

Backported to 3.2.x

@slouken slouken added this to the 3.2.16 milestone May 25, 2025
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.

SDL 3.2.14 regression: Descent 3 game window stays black Can't exit fullscreen
2 participants
0