ui/sdl2: Grab Alt+Tab also in fullscreen mode
commitcb0da00f58080040e6605b320fcc856a5c51378d
authorBernhard Beschow <shentey@gmail.com>
Mon, 17 Apr 2023 19:21:38 +0000 (17 21:21 +0200)
committerStefan Weil <sw@weilnetz.de>
Mon, 24 Apr 2023 02:54:09 +0000 (24 04:54 +0200)
tree5ed5817f8eda125de0ccfa819e75b3bbffe6c006
parent202bc2dabccf30867627930c740e79addc9cea40
ui/sdl2: Grab Alt+Tab also in fullscreen mode

By default, SDL grabs Alt+Tab only in non-fullscreen mode. This causes Alt+Tab
to switch tasks on the host rather than in the VM in fullscreen mode while it
switches tasks in non-fullscreen mode in the VM. Fix this confusing behavior
by grabbing Alt+Tab in fullscreen mode, always causing tasks to be switched in
the VM.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Message-Id: <20230417192139.43263-2-shentey@gmail.com>
ui/sdl2.c