From 845277f7fb7b340d8a9ece31099d61e4c9295b87 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 2 Aug 2023 20:41:15 +0200 Subject: [PATCH] clutter: Make clutter_event_get_source() only about crossing events Avoid peeking in the stage for loosely related actors, since the same event could be handled by different actors across the picking stack. This getter is also unused, so there's wiggle room here for changes. Part-of: --- clutter/clutter/clutter-event.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clutter/clutter/clutter-event.c b/clutter/clutter/clutter-event.c index 1aa1a3b22..566a76a1c 100644 --- a/clutter/clutter/clutter-event.c +++ b/clutter/clutter/clutter-event.c @@ -514,8 +514,7 @@ clutter_event_get_source (const ClutterEvent *event) event->type == CLUTTER_LEAVE) return event->crossing.source; - return clutter_stage_get_event_actor (clutter_event_get_stage (event), - event); + return NULL; } /**