ui/sdl2: Grab Alt+F4 also under Windows
commit132117c911337dc8f5c9bab82a0edf504072c24d
authorBernhard Beschow <shentey@gmail.com>
Wed, 12 Apr 2023 20:34:24 +0000 (12 22:34 +0200)
committerStefan Weil <sw@weilnetz.de>
Thu, 13 Apr 2023 06:42:36 +0000 (13 08:42 +0200)
treeda7ca1c815ea0b384b2af6bfa9ad01681f639a8e
parent5088ca50a3687df5fa8baa7d7ae6a16f99befc1d
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>
Message-Id: <20230412203425.32566-3-shentey@gmail.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
ui/sdl2.c