From 107c82106c342b2ec3683dc34db1ef13083943b8 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 31 May 2022 13:14:43 -0500 Subject: [PATCH] GUI: only set X11 window type if SDL >= 2.0.22 fixes #509 --- src/gui/gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 601d96196..5c083a5c0 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3965,7 +3965,9 @@ bool FurnaceGUI::init() { SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS,"0"); SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS,"0"); // don't disable compositing on KWin +#if SDL_VERSION_ATLEAST(2,0,22) SDL_SetHint(SDL_HINT_X11_WINDOW_TYPE,"_NET_WM_WINDOW_TYPE_NORMAL"); +#endif SDL_Init(SDL_INIT_VIDEO);