mirror of https://github.com/bsnes-emu/bsnes.git
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…
Reference in New Issue