From c9a4e88420324e8b3e4a2a5931a29ec4864292ea Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Tue, 30 Jun 2020 09:25:53 +0200 Subject: [PATCH] Disabled video minimize on focus loss --- src/osdep/amiberry_gfx.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osdep/amiberry_gfx.cpp b/src/osdep/amiberry_gfx.cpp index 20ff57e3..84bdff85 100644 --- a/src/osdep/amiberry_gfx.cpp +++ b/src/osdep/amiberry_gfx.cpp @@ -404,7 +404,10 @@ int graphics_setup(void) } if (SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "1") != SDL_TRUE) - write_log("SDL could not grab the keyboard"); + write_log("SDL2: could not grab the keyboard!\n"); + + if (SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0") == SDL_TRUE) + write_log("SDL2: Set window not to minimize on focus loss\n"); currprefs.gfx_apmode[1].gfx_refreshrate = host_hz;