[evince] Revert "ignore scroll, text selection events while unfocused"



commit 2e5065180919903c48d71c3b0d7c5abe00c8985d
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Sat Feb 22 17:24:59 2020 -0300

    Revert "ignore scroll, text selection events while unfocused"
    
    This reverts commit 5e6ff7abda31f818f11bdaa35a5254ea2ddc11d6.
    
    It causes a regression.
    
    Fixes #1316

 libview/ev-view.c | 18 ------------------
 1 file changed, 18 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 802ca493..ffbe1704 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -4294,10 +4294,6 @@ ev_view_scroll_event (GtkWidget *widget, GdkEventScroll *event)
        guint state;
        gboolean fit_width, fit_height;
 
-       /* Ignore scroll if EvView is unfocused. Issue #943 */
-       if (!gtk_widget_has_focus (widget))
-               return TRUE;
-
        state = event->state & gtk_accelerator_get_default_mod_mask ();
 
        if (state == GDK_CONTROL_MASK) {
@@ -5730,20 +5726,6 @@ ev_view_motion_notify_event (GtkWidget      *widget,
                         * while clicking for launching synctex. Issue #951 */
                        return TRUE;
                } else {
-                       /* Don't keep on selecting text and updating
-                        * scrollbars if we're unfocused. Issue #943 */
-                       if (!gtk_widget_has_focus (GTK_WIDGET (view))) {
-                               if (view->selection_scroll_id) {
-                                       g_source_remove (view->selection_scroll_id);
-                                       view->selection_scroll_id = 0;
-                               }
-                               if (view->selection_update_id) {
-                                       g_source_remove (view->selection_update_id);
-                                       view->selection_update_id = 0;
-                               }
-
-                               return TRUE;
-                       }
                        /* Schedule timeout to scroll during selection and additionally
                         * scroll once to allow arbitrary speed. */
                        if (!view->selection_scroll_id)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]