From f82a164d7566bc96a47304af491970edca4b75e4 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 13 Jan 2020 14:03:26 +1100 Subject: [PATCH] [client] enable SDL_SYSWMEVENT on X11 to work around SDL2 bugs --- VERSION | 2 +- client/src/main.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index e68d2606..aa0e41b2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-87-g788f885759+1 \ No newline at end of file +B1-88-g5d4e9b1ead+1 \ No newline at end of file diff --git a/client/src/main.c b/client/src/main.c index 414e642a..e97bce0f 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -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",