mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-01-16 20:28:14 +01:00
hiro: Force Gtk3 to use X11 backend
This commit is contained in:
parent
dab534b658
commit
3f93cd4393
@ -82,6 +82,8 @@ auto pApplication::state() -> State& {
|
||||
|
||||
auto pApplication::initialize() -> void {
|
||||
#if defined(DISPLAY_XORG)
|
||||
// If running on Wayland, force usage of XWayland
|
||||
setenv("GDK_BACKEND", "x11", 1);
|
||||
state().display = XOpenDisplay(nullptr);
|
||||
state().screenSaverXDG = (bool)execute("xdg-screensaver", "--version").output.find("xdg-screensaver");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user