meta-cursor-tracker: Initialize our position from MetaWaylandPointer's
Clutter's input device initial position defaults to (-1, -1) on most backends but for the evdev backend we changed it to be inside the stage to prevent the pointer from wandering outside the stage until it first enters, after which our constraining callback won't let it go out. This makes us be in sync with the real position from the start.
This commit is contained in:
parent
38e26e5cc3
commit
ef278eb547
1 changed files with 3 additions and 0 deletions
|
@ -570,6 +570,9 @@ make_wayland_cursor_tracker (MetaScreen *screen)
|
|||
|
||||
compositor = meta_wayland_compositor_get_default ();
|
||||
compositor->seat->cursor_tracker = self;
|
||||
meta_cursor_tracker_update_position (self,
|
||||
wl_fixed_to_int (compositor->seat->pointer.x),
|
||||
wl_fixed_to_int (compositor->seat->pointer.y));
|
||||
|
||||
#if defined(CLUTTER_WINDOWING_EGL)
|
||||
if (clutter_check_windowing_backend (CLUTTER_WINDOWING_EGL))
|
||||
|
|
Loading…
Reference in a new issue