From 3a60e6191cb6f99213d76af34e6f3ab79739b1f7 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 14 Sep 2016 20:17:38 +0200 Subject: [PATCH] Use the X11 backend instead of Wayland https://bugzilla.redhat.com/show_bug.cgi?id=1374321 --- Use-the-X11-backend-instead-of-Wayland.patch | 31 ++++++++++++++++++++ file-roller.spec | 6 ++++ 2 files changed, 37 insertions(+) create mode 100644 Use-the-X11-backend-instead-of-Wayland.patch diff --git a/Use-the-X11-backend-instead-of-Wayland.patch b/Use-the-X11-backend-instead-of-Wayland.patch new file mode 100644 index 0000000..720dadf --- /dev/null +++ b/Use-the-X11-backend-instead-of-Wayland.patch @@ -0,0 +1,31 @@ +From 00d2fbb998de419e514568c79fe0c3d8b9cc1a38 Mon Sep 17 00:00:00 2001 +From: Kalev Lember +Date: Wed, 14 Sep 2016 17:52:24 +0200 +Subject: [PATCH] Use the X11 backend instead of Wayland + +Force file-roller to use the gtk+ X11 backend even when running under a +Wayland session. This is currently needed to work around missing support +for arbitrarily named clipboards. + +https://bugzilla.gnome.org/show_bug.cgi?id=770333 +--- + src/main.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/main.c b/src/main.c +index 043f604..9fcb993 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -34,6 +34,10 @@ main (int argc, char **argv) + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); + ++ /* Use the X11 backend instead of Wayland, ++ * https://bugzilla.gnome.org/show_bug.cgi?id=770333 */ ++ gdk_set_allowed_backends ("x11"); ++ + app = fr_application_new (); + status = g_application_run (G_APPLICATION (app), argc, argv); + +-- +2.7.4 \ No newline at end of file diff --git a/file-roller.spec b/file-roller.spec index da6a10b..aeb93ea 100644 --- a/file-roller.spec +++ b/file-roller.spec @@ -7,6 +7,10 @@ License: GPLv2+ URL: https://wiki.gnome.org/Apps/FileRoller Source0: https://download.gnome.org/sources/%{name}/3.21/%{name}-%{version}.tar.xz +# Use the X11 backend instead of Wayland +# https://bugzilla.gnome.org/show_bug.cgi?id=770333 +Patch0: Use-the-X11-backend-instead-of-Wayland.patch + BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(json-glib-1.0) @@ -32,6 +36,7 @@ such as tar or zip files. %prep %setup -q +%patch0 -p1 %build %configure \ @@ -82,6 +87,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : * Wed Sep 14 2016 Kalev Lember - 3.21.91-1 - Update to 3.21.91 - Don't set group tags +- Use the X11 backend instead of Wayland (#1374321) * Mon Sep 12 2016 Kalev Lember - 3.21.90-2 - Disable nautilus extension