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

Wayland: mouse grab constrains to incorrect rect #7601

Closed
vladislavbelov opened this issue Apr 12, 2023 · 0 comments
Closed

Wayland: mouse grab constrains to incorrect rect #7601

vladislavbelov opened this issue Apr 12, 2023 · 0 comments
Labels
notourbug This bug is caused by an external component

Comments

@vladislavbelov
Copy link

vladislavbelov commented Apr 12, 2023

This issue isn't in SDL itself, but in mutter (https://gitlab.gnome.org/GNOME/mutter/-/issues/2740). I've created this issue in case someone will come across the same issue until the mutter's one is fixed. Feel free to close it if it's not needed.

We (0 A.D.) have met a bug (https://trac.wildfiregames.com/ticket/6649) on GNOME (mutter): after enabling mouse grab (SDL_SetWindowGrab(window, SDL_TRUE)) the mouse is restricted to an incorrect rect. It seems the confinement region is outdated after window creation/resize. After switching an active window back and forth (Alt - Tab) without any other action the region becomes valid until next resize.

I was able to reproduce it on Ubuntu 22.04, Ubuntu 22.10, Fedora 37 and Fedora 38 Beta with enabled Wayland SDL backend via SDL_VIDEODRIVER=wayland. It's reproducible even for a simple SDL sample after calling SDL_SetWindowGrab(window, SDL_TRUE) on a start.

@flibitijibibo flibitijibibo added the notourbug This bug is caused by an external component label Apr 12, 2023
@slouken slouken closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notourbug This bug is caused by an external component
Projects
None yet
Development

No branches or pull requests

3 participants