diff --git a/src/tests/clutter/conform/event-delivery.c b/src/tests/clutter/conform/event-delivery.c index 0f3ca256c..383ad0bae 100644 --- a/src/tests/clutter/conform/event-delivery.c +++ b/src/tests/clutter/conform/event-delivery.c @@ -120,7 +120,10 @@ test_action_handle_event (ClutterAction *action, if (action_claim_sequence) { - clutter_stage_notify_action_implicit_grab (clutter_event_get_stage (event), + ClutterActor *actor; + + actor = clutter_actor_meta_get_actor (CLUTTER_ACTOR_META (action)); + clutter_stage_notify_action_implicit_grab (CLUTTER_STAGE (clutter_actor_get_stage (actor)), clutter_event_get_device (event), clutter_event_get_event_sequence (event)); } diff --git a/src/tests/clutter/interactive/test-grab.c b/src/tests/clutter/interactive/test-grab.c index 6f789325f..a352411d6 100644 --- a/src/tests/clutter/interactive/test-grab.c +++ b/src/tests/clutter/interactive/test-grab.c @@ -94,7 +94,7 @@ debug_event_cb (ClutterActor *actor, return FALSE; } - target = clutter_stage_get_device_actor (clutter_event_get_stage (event), + target = clutter_stage_get_device_actor (CLUTTER_STAGE (clutter_actor_get_stage (actor)), clutter_event_get_device (event), clutter_event_get_event_sequence (event)); if (target == actor) @@ -149,7 +149,7 @@ toggle_grab_pointer_cb (ClutterActor *actor, ClutterActor *target; /* we only deal with the event if the source is ourself */ - target = clutter_stage_get_device_actor (clutter_event_get_stage (event), + target = clutter_stage_get_device_actor (CLUTTER_STAGE (clutter_actor_get_stage (actor)), clutter_event_get_device (event), clutter_event_get_event_sequence (event));