summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-10-10 13:43:29 -0700
committerCorey Berla <corey@berla.me>2022-10-10 13:43:29 -0700
commitec2936643b1fe3110fdd42e40f0ea819c024f245 (patch)
treeb6ccb78d33b5370330f494cbb02e6dc13864ff68
parent992ff6204643199c5447862554845e587f364a6c (diff)
downloadnautilus-wip/corey/touch-double-click.tar.gz
list-base: Handle double click with touchscreenwip/corey/touch-double-click
We override the double click in nautilus-list-base but only have a case for GDK_BUTTON_PRIMARY. If gtk_gesture_single_get_current_button() doesn't return a button, assume it's the pimary button. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2538
-rw-r--r--src/nautilus-list-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-list-base.c b/src/nautilus-list-base.c
index c1f85e6d1..3f484159d 100644
--- a/src/nautilus-list-base.c
+++ b/src/nautilus-list-base.c
@@ -395,7 +395,7 @@ on_item_click_pressed (GtkGestureClick *gesture,
/* It's safe to claim event sequence on press in the following cases because
* they don't interfere with touch scrolling. */
- if (button == GDK_BUTTON_PRIMARY && n_press == 2 && !priv->single_click_mode)
+ if (button <= GDK_BUTTON_PRIMARY && n_press == 2 && !priv->single_click_mode)
{
/* If Ctrl + Shift are held, we don't want to activate selection. But
* we still need to claim the event, otherwise GtkListBase's default