[client,sdl] fix #9442: handle alt+tab fullscreen

This commit is contained in:
Armin Novak 2023-10-04 15:26:21 +02:00 committed by akallabeth
parent 98c568b4b3
commit 7a4e989dcb

View File

@ -44,6 +44,7 @@
#include <freerdp/log.h>
#include <SDL.h>
#include <SDL_hints.h>
#include <SDL_video.h>
#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()))