mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3153>
This commit is contained in:
parent
85b13ebd18
commit
845277f7fb
@ -514,8 +514,7 @@ clutter_event_get_source (const ClutterEvent *event)
|
|||||||
event->type == CLUTTER_LEAVE)
|
event->type == CLUTTER_LEAVE)
|
||||||
return event->crossing.source;
|
return event->crossing.source;
|
||||||
|
|
||||||
return clutter_stage_get_event_actor (clutter_event_get_stage (event),
|
return NULL;
|
||||||
event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user