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()))