mirror of
https://github.com/brl/mutter.git
synced 2025-06-22 21:17:28 +00:00
clutter: Propagate PROXIMITY events up and down the tree
There's no real reason to keep those events exclusive to the stage, some actors or actions might want to get notified about proximity events too, so propagate them like any other event. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2342>
This commit is contained in:
@ -4077,6 +4077,8 @@ clutter_stage_emit_event (ClutterStage *self,
|
||||
case CLUTTER_TOUCH_BEGIN:
|
||||
case CLUTTER_TOUCH_CANCEL:
|
||||
case CLUTTER_TOUCH_END:
|
||||
case CLUTTER_PROXIMITY_IN:
|
||||
case CLUTTER_PROXIMITY_OUT:
|
||||
{
|
||||
float x, y;
|
||||
|
||||
@ -4089,13 +4091,6 @@ clutter_stage_emit_event (ClutterStage *self,
|
||||
target_actor = entry->current_actor;
|
||||
break;
|
||||
}
|
||||
|
||||
case CLUTTER_PROXIMITY_IN:
|
||||
case CLUTTER_PROXIMITY_OUT:
|
||||
{
|
||||
target_actor = CLUTTER_ACTOR (self);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
g_assert (target_actor != NULL);
|
||||
|
Reference in New Issue
Block a user