]> xenbits.xensource.com Git - qemu-xen.git/commit
ui/sdl2: Grab Alt+Tab also in fullscreen mode
authorBernhard Beschow <shentey@gmail.com>
Mon, 17 Apr 2023 19:21:38 +0000 (21:21 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 31 May 2023 06:43:56 +0000 (09:43 +0300)
commit6520bf66f4998b027c9d8f9dfb1ee34a958ade42
treef547ced2ca493ea7debf60ee608f051c4f43bca8
parentd4d91ae902199d991572c4cf3f4ede28e82cc0fd
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>
Message-Id: <20230417192139.43263-2-shentey@gmail.com>
(cherry picked from commit efc00a37090eced53bff8b42d26991252aaacc44)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
ui/sdl2.c