mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-08 13:16:54 +02:00
hiro: Force Gtk3 to use X11 backend
This commit is contained in:
committed by
Screwtapello
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");
|
||||
|
||||
|
Reference in New Issue
Block a user