GUI: update SDL hints

This commit is contained in:
tildearrow 2022-05-27 15:55:20 -05:00
parent 36c16467a5
commit ab91147c16

View file

@ -3910,8 +3910,11 @@ bool FurnaceGUI::init() {
SDL_Rect displaySize; SDL_Rect displaySize;
#endif #endif
SDL_SetHint("SDL_HINT_VIDEO_ALLOW_SCREENSAVER","1"); SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER,"1");
SDL_SetHint("SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH","1"); SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS,"0");
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS,"0");
// don't disable compositing on KWin
SDL_SetHint(SDL_HINT_X11_WINDOW_TYPE,"_NET_WM_WINDOW_TYPE_NORMAL");
SDL_Init(SDL_INIT_VIDEO); SDL_Init(SDL_INIT_VIDEO);