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

x11: Synthesize fullscreen size events on Openbox #12458

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

Kontrabant
Copy link
Contributor

Openbox doesn't send size or position events when entering fullscreen, so they must be synthesized. This is not desirable on any other window manager that does send size and position information, as it can break fullscreen positioning on multi-monitor configurations.

Fixes libsdl-org/sdl2-compat#393

Openbox doesn't send size events when entering fullscreen, so they must be synthesized. This is not desirable on any other window manager, as it can break fullscreen positioning on multi-monitor configurations.
@Kontrabant Kontrabant merged commit 9f9a442 into libsdl-org:main Mar 4, 2025
2 checks passed
@Kontrabant Kontrabant deleted the openbox_fs_fix branch March 4, 2025 17:41
@slouken
Copy link
Collaborator

slouken commented Mar 4, 2025

Do we want this on 3.2.x?

@Kontrabant
Copy link
Contributor Author

It's a bugfix, so yes, and done.

@Desour
Copy link
Contributor

Desour commented Mar 4, 2025

Thanks, works! ❤️

But on LXDE (which uses openbox), if I echo $XDG_CURRENT_DESKTOP or echo $DESKTOP_SESSION, it says LXDE, not openbox. But it still works, which confuses me.

@Kontrabant
Copy link
Contributor Author

I believe that LXDE is a modified version of Openbox, so it was probably updated to send size and position events when toggling fullscreen. I tried other bare-bones window managers like Fluxbox as well, and it was just plain Openbox that had this issue.

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.

No window size change event when entering/leaving fullscreen with window manager
3 participants