hiro: Force Gtk3 to use X11 backend

このコミットが含まれているのは:
Stefan Schmidt 2021-07-11 11:06:50 +02:00 committed by Luke Usher
コミット 19171c2723
1個のファイルの変更2行の追加0行の削除

ファイルの表示

@ -95,6 +95,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);
XInitThreads();
state().display = XOpenDisplay(nullptr);
state().screenSaverXDG = (bool)execute("xdg-screensaver", "--version").output.find("xdg-screensaver");