[nautilus/wip/ernestask/671] pathbar: Claim path bar button presses



commit a5b591cfdc34d94d62731cdcbd6ab0faec0eadf3
Author: Ernestas Kulik <ernestask gnome org>
Date:   Thu Oct 4 15:14:30 2018 +0300

    pathbar: Claim path bar button presses
    
    Since these are forwarded to the title bar, in cases where the middle
    click does something special (e.g. minimize the window), unintended
    side-effects might be observed in conjunction to opening the location in
    a new tab. Claiming the sequence helps prevent that.
    
    Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/671

 src/nautilus-pathbar.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index b3188d8de..092869cae 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -1230,6 +1230,8 @@ on_multi_press_gesture_pressed (GtkGestureMultiPress *gesture,
         }
         break;
     }
+
+    gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
 }
 
 static GIcon *


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