st-widget: Use clutter_input_device_get_actor() to get pointer actor
Use clutter_input_device_get_actor() since it replaces clutter_input_device_get_pointer_actor(). https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1285
This commit is contained in:
parent
15dc37a139
commit
dd8e1aef51
@ -1903,7 +1903,7 @@ st_widget_sync_hover (StWidget *widget)
|
||||
|
||||
seat = clutter_backend_get_default_seat (clutter_get_default_backend ());
|
||||
pointer = clutter_seat_get_pointer (seat);
|
||||
pointer_actor = clutter_input_device_get_pointer_actor (pointer);
|
||||
pointer_actor = clutter_input_device_get_actor (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
|
||||
|
Loading…
Reference in New Issue
Block a user