From 0d9eb20ce219b0a71b068122c8468500463cf472 Mon Sep 17 00:00:00 2001 From: Julia K Date: Sat, 13 Jun 2020 00:49:29 +0200 Subject: [PATCH] Support SDL <2.0.8 --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index a803bd7..f2cc8bb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -197,7 +197,9 @@ int main(int argc, char *argv[]) SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0"); SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0"); SDL_SetHint(SDL_HINT_VIDEO_HIGHDPI_DISABLED, "1"); +#if defined(__linux__) && SDL_VERSION_ATLEAST(2, 0, 8) SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"); +#endif /* initialize SDL first */ if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER) < 0)