mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
backend/native: Let cursor renderer/tracker be updated by events after warp
We will generate a motion event, which will end up with the same result, at a time we can ensure it did happen. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:
parent
59059e1730
commit
39f4acac3d
@ -333,14 +333,8 @@ meta_seat_native_warp_pointer (ClutterSeat *seat,
|
||||
int y)
|
||||
{
|
||||
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);
|
||||
|
||||
meta_seat_impl_warp_pointer (seat_native->impl, x, y);
|
||||
meta_cursor_renderer_update_position (cursor_renderer);
|
||||
meta_cursor_tracker_invalidate_position (cursor_tracker);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user