From fc1d1e536287b6e604dbcc38fc58c0474631b618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 15 Oct 2020 17:00:16 +0200 Subject: [PATCH] st/widget: Switch to the new API to get actor from inputdevice clutter_input_device_get_actor() was removed in favour of clutter_stage_get_device_actor(), so use that. Part-of: --- src/st/st-widget.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/st/st-widget.c b/src/st/st-widget.c index bfce54572..2ee74af08 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -1865,12 +1865,17 @@ void st_widget_sync_hover (StWidget *widget) { ClutterInputDevice *pointer; + ClutterActor *stage; ClutterActor *pointer_actor; ClutterSeat *seat; seat = clutter_backend_get_default_seat (clutter_get_default_backend ()); pointer = clutter_seat_get_pointer (seat); - pointer_actor = clutter_input_device_get_actor (pointer, NULL); + stage = clutter_actor_get_stage (CLUTTER_ACTOR (widget)); + if (!stage) + return; + + pointer_actor = clutter_stage_get_device_actor (CLUTTER_STAGE (stage), pointer, NULL); if (pointer_actor && clutter_actor_get_reactive (CLUTTER_ACTOR (widget))) st_widget_set_hover (widget, clutter_actor_contains (CLUTTER_ACTOR (widget), pointer_actor)); else