mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
gesture-tracker: Only track actions which are actually enabled
Tracking disabled actions doesn't make sense, these will never recognize anyway. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2508>
This commit is contained in:
parent
c40feb33fa
commit
fc1b4ae149
@ -370,7 +370,8 @@ meta_gesture_tracker_track_stage (MetaGestureTracker *tracker,
|
||||
{
|
||||
GestureActionData data;
|
||||
|
||||
if (!CLUTTER_IS_GESTURE_ACTION (l->data))
|
||||
if (!clutter_actor_meta_get_enabled (l->data) ||
|
||||
!CLUTTER_IS_GESTURE_ACTION (l->data))
|
||||
continue;
|
||||
|
||||
data.gesture = g_object_ref (l->data);
|
||||
|
Loading…
Reference in New Issue
Block a user