[mutter/wip/carlosg/sanitize-gestures: 31/33] clutter: Make ClutterClickAction independent of click count
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/sanitize-gestures: 31/33] clutter: Make ClutterClickAction independent of click count
- Date: Sat, 16 Oct 2021 11:00:07 +0000 (UTC)
commit 16bedc5305f964348d3864ba4ea1ca3bfe572ace
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Sep 27 20:37:30 2021 +0200
clutter: Make ClutterClickAction independent of click count
This will trigger for every button press/release that is obtained,
regardless of the click count.
clutter/clutter/clutter-click-action.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/clutter/clutter/clutter-click-action.c b/clutter/clutter/clutter-click-action.c
index e218213b41..4e3fec9d1d 100644
--- a/clutter/clutter/clutter-click-action.c
+++ b/clutter/clutter/clutter-click-action.c
@@ -308,9 +308,6 @@ clutter_click_action_handle_event (ClutterAction *action,
case CLUTTER_TOUCH_BEGIN:
has_button = FALSE;
case CLUTTER_BUTTON_PRESS:
- if (has_button && clutter_event_get_click_count (event) != 1)
- return CLUTTER_EVENT_PROPAGATE;
-
if (priv->is_held)
return CLUTTER_EVENT_STOP;
@@ -362,7 +359,6 @@ clutter_click_action_handle_event (ClutterAction *action,
return CLUTTER_EVENT_STOP;
if ((has_button && clutter_event_get_button (event) != priv->press_button) ||
- (has_button && clutter_event_get_click_count (event) != 1) ||
clutter_event_get_device (event) != priv->press_device ||
clutter_event_get_event_sequence (event) != priv->press_sequence)
return CLUTTER_EVENT_PROPAGATE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]