Skip to content

Commit

Permalink
[client] enable SDL_SYSWMEVENT on X11 to work around SDL2 bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Jan 13, 2020
1 parent 5d4e9b1 commit f82a164
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
B1-87-g788f885759+1
B1-88-g5d4e9b1ead+1
3 changes: 3 additions & 0 deletions client/src/main.c
Expand Up @@ -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",
Expand Down

0 comments on commit f82a164

Please sign in to comment.