|
|
1e895f |
From 28030178d7682ce5be03cb7273365ab628065871 Mon Sep 17 00:00:00 2001
|
|
|
1e895f |
From: Carlos Garnacho <carlosg@gnome.org>
|
|
|
1e895f |
Date: Mon, 27 Sep 2021 20:37:30 +0200
|
|
|
1e895f |
Subject: [PATCH] clutter: Make ClutterClickAction independent of click count
|
|
|
1e895f |
|
|
|
1e895f |
This will trigger for every button press/release that is obtained,
|
|
|
1e895f |
regardless of the click count.
|
|
|
1e895f |
|
|
|
1e895f |
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2024>
|
|
|
1e895f |
---
|
|
|
1e895f |
clutter/clutter/clutter-click-action.c | 4 ----
|
|
|
1e895f |
1 file changed, 4 deletions(-)
|
|
|
1e895f |
|
|
|
1e895f |
diff --git a/clutter/clutter/clutter-click-action.c b/clutter/clutter/clutter-click-action.c
|
|
|
1e895f |
index 45d87e809..266b6da92 100644
|
|
|
1e895f |
--- a/clutter/clutter/clutter-click-action.c
|
|
|
1e895f |
+++ b/clutter/clutter/clutter-click-action.c
|
|
|
1e895f |
@@ -306,9 +306,6 @@ on_event (ClutterActor *actor,
|
|
|
1e895f |
case CLUTTER_TOUCH_BEGIN:
|
|
|
1e895f |
has_button = FALSE;
|
|
|
1e895f |
case CLUTTER_BUTTON_PRESS:
|
|
|
1e895f |
- if (has_button && clutter_event_get_click_count (event) != 1)
|
|
|
1e895f |
- return CLUTTER_EVENT_PROPAGATE;
|
|
|
1e895f |
-
|
|
|
1e895f |
if (priv->is_held)
|
|
|
1e895f |
return CLUTTER_EVENT_STOP;
|
|
|
1e895f |
|
|
|
1e895f |
@@ -386,7 +383,6 @@ on_captured_event (ClutterActor *stage,
|
|
|
1e895f |
return CLUTTER_EVENT_STOP;
|
|
|
1e895f |
|
|
|
1e895f |
if ((has_button && clutter_event_get_button (event) != priv->press_button) ||
|
|
|
1e895f |
- (has_button && clutter_event_get_click_count (event) != 1) ||
|
|
|
1e895f |
clutter_event_get_device (event) != priv->press_device ||
|
|
|
1e895f |
clutter_event_get_event_sequence (event) != priv->press_sequence)
|
|
|
1e895f |
return CLUTTER_EVENT_PROPAGATE;
|
|
|
1e895f |
--
|
|
|
1e895f |
2.35.1
|
|
|
1e895f |
|