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:
parent
0f0466fa8e
commit
a62ae73478
@ -4077,6 +4077,8 @@ clutter_stage_emit_event (ClutterStage *self,
|
|||||||
case CLUTTER_TOUCH_BEGIN:
|
case CLUTTER_TOUCH_BEGIN:
|
||||||
case CLUTTER_TOUCH_CANCEL:
|
case CLUTTER_TOUCH_CANCEL:
|
||||||
case CLUTTER_TOUCH_END:
|
case CLUTTER_TOUCH_END:
|
||||||
|
case CLUTTER_PROXIMITY_IN:
|
||||||
|
case CLUTTER_PROXIMITY_OUT:
|
||||||
{
|
{
|
||||||
float x, y;
|
float x, y;
|
||||||
|
|
||||||
@ -4089,13 +4091,6 @@ clutter_stage_emit_event (ClutterStage *self,
|
|||||||
target_actor = entry->current_actor;
|
target_actor = entry->current_actor;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case CLUTTER_PROXIMITY_IN:
|
|
||||||
case CLUTTER_PROXIMITY_OUT:
|
|
||||||
{
|
|
||||||
target_actor = CLUTTER_ACTOR (self);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_assert (target_actor != NULL);
|
g_assert (target_actor != NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user