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;
|
GestureActionData data;
|
||||||
|
|
||||||
if (!CLUTTER_IS_GESTURE_ACTION (l->data))
|
if (!clutter_actor_meta_get_enabled (l->data) ||
|
||||||
|
!CLUTTER_IS_GESTURE_ACTION (l->data))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
data.gesture = g_object_ref (l->data);
|
data.gesture = g_object_ref (l->data);
|
||||||
|
Loading…
Reference in New Issue
Block a user