clutter/input-device: Make clutter_input_device_get_actor() public

Make the clutter_input_device_get_actor() API public and remove
clutter_input_device_get_pointer_actor() in favour of the new function.

This allows also getting the "pointer" actor for a given touch sequence,
not only for real pointer input devices like mice.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1275
This commit is contained in:
Jonas Dreßler
2020-03-03 12:02:29 +01:00
committed by verdre
parent 8de91f1053
commit 7539de2320
4 changed files with 25 additions and 27 deletions

View File

@ -621,7 +621,7 @@ repick_for_event (MetaWaylandPointer *pointer,
if (for_event)
actor = clutter_event_get_source (for_event);
else
actor = clutter_input_device_get_pointer_actor (pointer->device);
actor = clutter_input_device_get_actor (pointer->device, NULL);
if (META_IS_SURFACE_ACTOR_WAYLAND (actor))
{