[Xfce4-commits] [xfce/xfwm4] 05/05: main: Only allow for the x11 gdk backend
noreply at xfce.org
noreply at xfce.org
Wed Dec 6 09:55:52 CET 2017
This is an automated email from the git hooks/post-receive script.
o l i v i e r p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfwm4.
commit 6a44ecc303f3cdb6ba33c0f9b75710c4c0983760
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Wed Dec 6 09:53:25 2017 +0100
main: Only allow for the x11 gdk backend
When running xfwm4 from a nested X11 server (Xnest, Xephyr) from within
a Wayland session, GDK will selects in priority the Wayland backend,
which will lead to a crash because xfwm4 is an X11 window manager and
not a Wayland client.
Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
src/main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/main.c b/src/main.c
index 28136e1..254ed54 100644
--- a/src/main.c
+++ b/src/main.c
@@ -673,6 +673,12 @@ main (int argc, char **argv)
xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
+ /* xfwm4 is an X11 window manager, no point in trying to connect to
+ * any other display server (like when running nested within a
+ * Wayland compositor).
+ */
+ gdk_set_allowed_backends ("x11");
+
#ifndef HAVE_XI2
/* Disable XI2 in GDK */
gdk_disable_multidevice ();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list