From 5d94fa0053adf3281dfc5ccde123e3f322d346a2 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 11 Dec 2021 19:16:43 +0200 Subject: Android: Setting up the build --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index cb5e060b..f765f82f 100644 --- a/src/main.c +++ b/src/main.c @@ -67,9 +67,11 @@ int main(int argc, char **argv) { "ECDHE-RSA-AES128-GCM-SHA256:" "DHE-RSA-AES256-GCM-SHA384"); SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); + SDL_SetHint(SDL_HINT_MAC_BACKGROUND_APP, "1"); SDL_SetHint(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, "1"); +#if SDL_VERSION_ATLEAST(2, 0, 8) SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"); - SDL_SetHint(SDL_HINT_MAC_BACKGROUND_APP, "1"); +#endif #if 0 SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "1"); /* debugging! */ #endif -- cgit v1.2.3