ui/sdl2: Grab Alt+F4 also under Windows
commitc8c98f0911cb1031dc1b4864c3c98754b8a7efe0
authorBernhard Beschow <shentey@gmail.com>
Mon, 17 Apr 2023 19:21:39 +0000 (17 21:21 +0200)
committerStefan Weil <sw@weilnetz.de>
Mon, 24 Apr 2023 02:54:09 +0000 (24 04:54 +0200)
treef7b25cd84899b64f160ec848303290e93e6f03b0
parentcb0da00f58080040e6605b320fcc856a5c51378d
ui/sdl2: Grab Alt+F4 also under Windows

SDL doesn't grab Alt+F4 under Windows by default. Pressing Alt+F4 thus closes
the VM immediately without confirmation, possibly leading to data loss. Fix
this by always grabbing Alt+F4 on Windows hosts, too.

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-3-shentey@gmail.com>
ui/sdl2.c