ui/sdl2: Grab Alt+Tab also in fullscreen mode
commit5088ca50a3687df5fa8baa7d7ae6a16f99befc1d
authorBernhard Beschow <shentey@gmail.com>
Wed, 12 Apr 2023 20:34:23 +0000 (12 22:34 +0200)
committerStefan Weil <sw@weilnetz.de>
Thu, 13 Apr 2023 06:41:09 +0000 (13 08:41 +0200)
treeec449de411f4ff9f9e2171efd8f9997e3e5ddcf8
parentc0189df094090146a6e00ba393a1f7c82fae5ac8
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>
Message-Id: <20230412203425.32566-2-shentey@gmail.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
ui/sdl2.c