Skip to content
Permalink
Browse files

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

  • Loading branch information
gnif committed Jan 13, 2020
1 parent 5d4e9b1 commit f82a164d7566bc96a47304af491970edca4b75e4
Showing with 4 additions and 1 deletion.
  1. +1 −1 VERSION
  2. +3 −0 client/src/main.c
@@ -1 +1 @@
B1-87-g788f885759+1
B1-88-g5d4e9b1ead+1
@@ -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",

0 comments on commit f82a164

Please sign in to comment.
You can’t perform that action at this time.