From 427db1c61fcbd4a8f47707898e6ebc83b5817e6e Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Wed, 16 Oct 2019 13:16:44 +0200 Subject: [PATCH] Fix crash during dragging of text on Wayland Resolves: #1753830 --- evince-text-drag.patch | 13 +++++++++++++ evince.spec | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 evince-text-drag.patch diff --git a/evince-text-drag.patch b/evince-text-drag.patch new file mode 100644 index 0000000..2aa2e18 --- /dev/null +++ b/evince-text-drag.patch @@ -0,0 +1,13 @@ +diff --git a/libview/ev-view.c b/libview/ev-view.c +index 2bb5e3c2..acef1917 100644 +--- a/libview/ev-view.c ++++ b/libview/ev-view.c +@@ -9789,7 +9789,7 @@ ev_view_set_cursor (EvView *view, EvViewCursor new_cursor) + widget = gtk_widget_get_toplevel (GTK_WIDGET (view)); + cursor = ev_view_cursor_new (gtk_widget_get_display (widget), new_cursor); + gdk_window_set_cursor (window, cursor); +- gdk_flush (); ++ gdk_display_flush (gtk_widget_get_display (GTK_WIDGET (view))); + if (cursor) + g_object_unref (cursor); + } diff --git a/evince.spec b/evince.spec index 2bafbb0..9d30a6c 100644 --- a/evince.spec +++ b/evince.spec @@ -6,7 +6,7 @@ Name: evince Version: 3.34.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Document viewer License: GPLv2+ and GPLv3+ and LGPLv2+ and MIT and Afmparse @@ -16,6 +16,9 @@ Source0: https://download.gnome.org/sources/%{name}/3.34/%{name}-%{versio # https://bugzilla.gnome.org/show_bug.cgi?id=766749 Patch0: 0001-Resolves-deb-762530-rhbz-1061177-add-man-pages.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1753830 +Patch1: evince-text-drag.patch + BuildRequires: gcc-c++ BuildRequires: gcc BuildRequires: gettext-devel @@ -259,6 +262,10 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Evince-p %endif %changelog +* Wed Oct 16 2019 Marek Kasik - 3.34.1-2 +- Fix crash during dragging of text on Wayland +- Resolves: #1753830 + * Mon Oct 07 2019 Kalev Lember - 3.34.1-1 - Update to 3.34.1