Blame SOURCES/Use-the-X11-backend-instead-of-Wayland.patch

e3fc0f
From 00d2fbb998de419e514568c79fe0c3d8b9cc1a38 Mon Sep 17 00:00:00 2001
e3fc0f
From: Kalev Lember <klember@redhat.com>
e3fc0f
Date: Wed, 14 Sep 2016 17:52:24 +0200
e3fc0f
Subject: [PATCH] Use the X11 backend instead of Wayland
e3fc0f
e3fc0f
Force file-roller to use the gtk+ X11 backend even when running under a
e3fc0f
Wayland session. This is currently needed to work around missing support
e3fc0f
for arbitrarily named clipboards.
e3fc0f
e3fc0f
https://bugzilla.gnome.org/show_bug.cgi?id=770333
e3fc0f
---
e3fc0f
 src/main.c | 4 ++++
e3fc0f
 1 file changed, 4 insertions(+)
e3fc0f
e3fc0f
diff --git a/src/main.c b/src/main.c
e3fc0f
index 043f604..9fcb993 100644
e3fc0f
--- a/src/main.c
e3fc0f
+++ b/src/main.c
e3fc0f
@@ -34,6 +34,10 @@ main (int argc, char **argv)
e3fc0f
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
e3fc0f
 	textdomain (GETTEXT_PACKAGE);
e3fc0f
 
e3fc0f
+	/* Use the X11 backend instead of Wayland,
e3fc0f
+	 * https://bugzilla.gnome.org/show_bug.cgi?id=770333 */
e3fc0f
+	gdk_set_allowed_backends ("x11");
e3fc0f
+
e3fc0f
 	app = fr_application_new ();
e3fc0f
 	status = g_application_run (G_APPLICATION (app), argc, argv);
e3fc0f
 
e3fc0f
-- 
e3fc0f
2.7.4