Fix crash during dragging of text on Wayland

Resolves: #1753830
This commit is contained in:
Marek Kasik 2019-10-16 13:16:44 +02:00
parent b008ced10b
commit 427db1c61f
2 changed files with 21 additions and 1 deletions

13
evince-text-drag.patch Normal file
View File

@ -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);
}

View File

@ -6,7 +6,7 @@
Name: evince Name: evince
Version: 3.34.1 Version: 3.34.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Document viewer Summary: Document viewer
License: GPLv2+ and GPLv3+ and LGPLv2+ and MIT and Afmparse 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 # https://bugzilla.gnome.org/show_bug.cgi?id=766749
Patch0: 0001-Resolves-deb-762530-rhbz-1061177-add-man-pages.patch 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-c++
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gettext-devel BuildRequires: gettext-devel
@ -259,6 +262,10 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Evince-p
%endif %endif
%changelog %changelog
* Wed Oct 16 2019 Marek Kasik <mkasik@redhat.com> - 3.34.1-2
- Fix crash during dragging of text on Wayland
- Resolves: #1753830
* Mon Oct 07 2019 Kalev Lember <klember@redhat.com> - 3.34.1-1 * Mon Oct 07 2019 Kalev Lember <klember@redhat.com> - 3.34.1-1
- Update to 3.34.1 - Update to 3.34.1