GUI: only set X11 window type if SDL >= 2.0.22

fixes #509
This commit is contained in:
tildearrow 2022-05-31 13:14:43 -05:00
parent b0b07dc516
commit 107c82106c

View file

@ -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);