diff options
author | Martin Wimpress <[email protected]> | 2019-11-04 18:57:50 +0000 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-11-23 14:44:21 +0100 |
commit | ecd0d8cbf4851d36f2fe859b38740d0203949c4d (patch) | |
tree | 1e4880646ea4baeaa061b1399056bbee2c254926 | |
parent | 51756a1ec610e9d9c6d8c19ba0067bde52ef0d31 (diff) | |
download | atril-ecd0d8cbf4851d36f2fe859b38740d0203949c4d.tar.bz2 atril-ecd0d8cbf4851d36f2fe859b38740d0203949c4d.tar.xz |
libview: Reset `pressed_button` when starting Drag and Drop
If view->pressed_button is left set, when the Drag and Drop operation completes, Atril will act as if it is still in a selection event.
Adapted from: https://gitlab.gnome.org/GNOME/evince/commit/92828bb797742e04aadbfdd62ba1da36837c37cf
-rw-r--r-- | libview/ev-view.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c index 2db3eb2b..6bc5dc56 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -4807,6 +4807,7 @@ ev_view_motion_notify_event (GtkWidget *widget, event->y); view->selection_info.in_drag = FALSE; + view->pressed_button = -1; gtk_target_list_unref (target_list); @@ -4829,6 +4830,7 @@ ev_view_motion_notify_event (GtkWidget *widget, event->y); view->image_dnd_info.in_drag = FALSE; + view->pressed_button = -1; gtk_target_list_unref (target_list); |