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:
Jonas Dreßler 2022-05-09 13:17:00 +02:00 committed by Marge Bot
parent c40feb33fa
commit fc1b4ae149

View File

@ -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);