mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
core: Centralize cursor renderer and tracker updates
These use now more of a "pull" model, where they receive update notifications and the relevant input position is queried, instead of the coordinates being passed along. This allows to treat cursor renderers all the same independently of the device they track. This notifying of position changes should ideally be more backend-y than core-y, a better location will be figured out in future commits. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:

committed by
Marge Bot

parent
a8e2935225
commit
00cbcb7ba1
@ -2840,11 +2840,14 @@ meta_seat_native_warp_pointer (ClutterSeat *seat,
|
||||
{
|
||||
MetaSeatNative *seat_native = META_SEAT_NATIVE (seat);
|
||||
MetaBackend *backend = meta_get_backend ();
|
||||
MetaCursorRenderer *cursor_renderer =
|
||||
meta_backend_get_cursor_renderer (backend);
|
||||
MetaCursorTracker *cursor_tracker = meta_backend_get_cursor_tracker (backend);
|
||||
|
||||
notify_absolute_motion (seat_native->core_pointer, 0, x, y, NULL);
|
||||
|
||||
meta_cursor_tracker_update_position (cursor_tracker, x, y);
|
||||
meta_cursor_renderer_update_position (cursor_renderer);
|
||||
meta_cursor_tracker_invalidate_position (cursor_tracker);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Reference in New Issue
Block a user