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

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