[mutter/wayland] meta-cursor-tracker: Initialize our position from MetaWaylandPointer's
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] meta-cursor-tracker: Initialize our position from MetaWaylandPointer's
- Date: Fri, 7 Mar 2014 17:01:46 +0000 (UTC)
commit ef278eb5475ea5673aa9e1b6c507501b41d7ed1f
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Feb 24 21:34:33 2014 +0100
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.
src/core/meta-cursor-tracker.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/core/meta-cursor-tracker.c b/src/core/meta-cursor-tracker.c
index 973aacf..347544b 100644
--- a/src/core/meta-cursor-tracker.c
+++ b/src/core/meta-cursor-tracker.c
@@ -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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]