[mutter/wip/tablet-protocol: 6/6] core: Avoid updating cursor position on tablet events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/tablet-protocol: 6/6] core: Avoid updating cursor position on tablet events
- Date: Fri, 9 Jan 2015 16:44:45 +0000 (UTC)
commit cc89e4deea0adc1d26856b453f56aa781cbeba3a
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jan 9 17:31:02 2015 +0100
core: Avoid updating cursor position on tablet events
These events will eventually handle individual device cursors, at the
moment just stop updating the pointer cursor.
src/core/events.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/core/events.c b/src/core/events.c
index c20794b..9e4ecd0 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -180,8 +180,15 @@ meta_display_handle_event (MetaDisplay *display,
if (meta_is_wayland_compositor () && event->type == CLUTTER_MOTION)
{
- MetaCursorTracker *tracker = meta_cursor_tracker_get_for_screen (NULL);
- meta_cursor_tracker_update_position (tracker, event->motion.x, event->motion.y);
+ MetaWaylandCompositor *compositor;
+
+ compositor = meta_wayland_compositor_get_default ();
+
+ if (!meta_wayland_tablet_manager_consumes_event (compositor->tablet_manager, event))
+ {
+ MetaCursorTracker *tracker = meta_cursor_tracker_get_for_screen (NULL);
+ meta_cursor_tracker_update_position (tracker, event->motion.x, event->motion.y);
+ }
}
handle_idletime_for_event (event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]