[client] enable SDL_SYSWMEVENT on X11 to work around SDL2 bugs

This commit is contained in:
Geoffrey McRae committed 2020-01-13 14:03:26 +11:00
1 parent 5d4e9b1ead
commit f82a164d75
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
B1-87-g788f885759+1
B1-88-g5d4e9b1ead+1
+3
View File
@@ -1328,6 +1328,9 @@ static int lg_run()
{
if (state.wminfo.subsystem == SDL_SYSWM_X11)
{
// enable X11 events to work around SDL2 bugs
SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE);
Atom NETWM_BYPASS_COMPOSITOR = XInternAtom(
state.wminfo.info.x11.display,
"NETWM_BYPASS_COMPOSITOR",