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

sdl: on wayland use SDL_GetMouseState #2802

Closed

Conversation

NeroBurner
Copy link
Contributor

When the SDL Video backend is set to wayland the function
SDL_GetGlobalMouseState does not work. Most probably a security measure
for programs to not grab everything the user does
https://wiki.libsdl.org/SDL_GetGlobalMouseState

using SDL_GetMouseState https://wiki.libsdl.org/SDL_GetMouseState works
on wayland

fixes #2800

@NeroBurner NeroBurner force-pushed the fix_sdl_backend_on_wayland branch from 8196f62 to 705803d Compare September 24, 2019 18:03
@NeroBurner NeroBurner force-pushed the fix_sdl_backend_on_wayland branch from 9b1c981 to e2ae170 Compare September 24, 2019 18:52
@NeroBurner
Copy link
Contributor Author

squashed

@NeroBurner NeroBurner force-pushed the fix_sdl_backend_on_wayland branch from e2ae170 to 83a1b0b Compare September 29, 2019 20:46
@NeroBurner
Copy link
Contributor Author

rebased, use the right camel-case for MemberVariable, add some explaining comments

hope I got the conventions right this time

@NeroBurner NeroBurner force-pushed the fix_sdl_backend_on_wayland branch from 83a1b0b to 13e4d9b Compare October 2, 2019 20:31
When the SDL Video backend is set to wayland the function
`SDL_GetGlobalMouseState` does not work. Most probably a security measure
for programs to not grab everything the user does
https://wiki.libsdl.org/SDL_GetGlobalMouseState

using SDL_GetMouseState https://wiki.libsdl.org/SDL_GetMouseState works
on wayland
@NeroBurner NeroBurner force-pushed the fix_sdl_backend_on_wayland branch from 13e4d9b to a37ec90 Compare October 14, 2019 09:06
ocornut pushed a commit that referenced this pull request Dec 17, 2019
When the SDL Video backend is set to wayland the function
`SDL_GetGlobalMouseState` does not work. Most probably a security measure
for programs to not grab everything the user does
https://wiki.libsdl.org/SDL_GetGlobalMouseState

using SDL_GetMouseState https://wiki.libsdl.org/SDL_GetMouseState works
on wayland
@ocornut
Copy link
Owner

ocornut commented Dec 17, 2019

Merged, thank you @NeroBurner !

@ocornut ocornut closed this Dec 17, 2019
@NeroBurner NeroBurner deleted the fix_sdl_backend_on_wayland branch December 17, 2019 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SDL backend does not work with SDL_VIDEODRIVER=wayland
2 participants