mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
clutter: Drop clutter_input_device_get_coords() method
This is not device state anymore. It uses ClutterSeat API underneath, so let callers do that instead. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:

committed by
Marge Bot

parent
efc1592d4d
commit
c6849a66e8
@ -515,7 +515,8 @@ meta_barrier_manager_native_process (MetaBarrierManagerNative *manager,
|
||||
MetaBarrierEventData barrier_event_data;
|
||||
MetaBarrierImplNative *barrier_impl;
|
||||
|
||||
if (!clutter_input_device_get_coords (device, NULL, &prev_pos))
|
||||
if (!clutter_seat_query_state (clutter_input_device_get_seat (device),
|
||||
device, NULL, &prev_pos, NULL))
|
||||
return;
|
||||
|
||||
g_mutex_lock (&manager->mutex);
|
||||
|
@ -609,7 +609,8 @@ meta_pointer_constraint_impl_native_ensure_constrained (MetaPointerConstraintImp
|
||||
constraint_impl_native = META_POINTER_CONSTRAINT_IMPL_NATIVE (constraint_impl);
|
||||
region = cairo_region_reference (constraint_impl_native->region);
|
||||
|
||||
clutter_input_device_get_coords (device, NULL, &point);
|
||||
clutter_seat_query_state (clutter_input_device_get_seat (device),
|
||||
device, NULL, &point, NULL);
|
||||
x = point.x;
|
||||
y = point.y;
|
||||
|
||||
|
Reference in New Issue
Block a user