ui/sdl2: remove workaround forcing x11
authorErico Nunes <ernunes@redhat.com>
Wed, 1 Mar 2023 14:12:05 +0000 (15:12 +0100)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 21 Mar 2023 07:25:31 +0000 (11:25 +0400)
commit9b6611f40b08e255e28ebc615c64df0252dacbb8
tree99e92b0e94030070d41c43189c56d3d5637613cd
parent3c293a46627063eb4b12d808c7ec43b1cff8e463
ui/sdl2: remove workaround forcing x11

This workaround was put in place in the original implementation almost
10 years ago, considering a very old SDL2 version. Currently it prevents
users to run in a wayland-only environment without manually forcing the
backend.
The SDL2 wayland backend has been supported by distributions for a very
long time (e.g. in Fedora, first available 8 years ago), and is now
considered stable and becoming the default for new SDL2 releases.
Instead of requiring the x11 backend to exist by default, let new qemu
releases run with the default chosen by the installed SDL2 version.

Signed-off-by: Erico Nunes <ernunes@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230301141205.514338-1-ernunes@redhat.com>
ui/sdl2.c