From 7a4e989dcb626c384eb2d9a0e850a6866ebdc04b Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 4 Oct 2023 15:26:21 +0200 Subject: [PATCH] [client,sdl] fix #9442: handle alt+tab fullscreen --- client/SDL/sdl_freerdp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/SDL/sdl_freerdp.cpp b/client/SDL/sdl_freerdp.cpp index cfa59efdb..b2ea9d3b7 100644 --- a/client/SDL/sdl_freerdp.cpp +++ b/client/SDL/sdl_freerdp.cpp @@ -44,6 +44,7 @@ #include #include +#include #include #include "sdl_channels.hpp" @@ -701,6 +702,10 @@ static int sdl_run(SdlContext* sdl) } SDL_Init(SDL_INIT_VIDEO); +#if SDL_VERSION_ATLEAST(2, 0, 16) + SDL_SetHint(SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED, "0"); +#endif + sdl->initialized.set(); while (!freerdp_shall_disconnect_context(sdl->context()))