mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
clutter: Make ClutterClickAction independent of click count
This will trigger for every button press/release that is obtained, regardless of the click count. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2024>
This commit is contained in:
parent
a084fc10f7
commit
8c4c3f0308
@ -308,9 +308,6 @@ clutter_click_action_handle_event (ClutterAction *action,
|
|||||||
case CLUTTER_TOUCH_BEGIN:
|
case CLUTTER_TOUCH_BEGIN:
|
||||||
has_button = FALSE;
|
has_button = FALSE;
|
||||||
case CLUTTER_BUTTON_PRESS:
|
case CLUTTER_BUTTON_PRESS:
|
||||||
if (has_button && clutter_event_get_click_count (event) != 1)
|
|
||||||
return CLUTTER_EVENT_PROPAGATE;
|
|
||||||
|
|
||||||
if (priv->is_held)
|
if (priv->is_held)
|
||||||
return CLUTTER_EVENT_STOP;
|
return CLUTTER_EVENT_STOP;
|
||||||
|
|
||||||
@ -362,7 +359,6 @@ clutter_click_action_handle_event (ClutterAction *action,
|
|||||||
return CLUTTER_EVENT_STOP;
|
return CLUTTER_EVENT_STOP;
|
||||||
|
|
||||||
if ((has_button && clutter_event_get_button (event) != priv->press_button) ||
|
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_device (event) != priv->press_device ||
|
||||||
clutter_event_get_event_sequence (event) != priv->press_sequence)
|
clutter_event_get_event_sequence (event) != priv->press_sequence)
|
||||||
return CLUTTER_EVENT_PROPAGATE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
|
Loading…
Reference in New Issue
Block a user