[mutter/wip/tablet-protocol: 50/50] wayland: Ignore motion events with no axes from tablets



commit 166919c0d5125eedf5150bbd6483fafea158f10f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Feb 11 12:12:24 2015 +0100

    wayland: Ignore motion events with no axes from tablets
    
    There is not enough information for clients there, so just skip the event.

 src/wayland/meta-wayland-tablet.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland-tablet.c b/src/wayland/meta-wayland-tablet.c
index 5f1a5d8..6c3c5e7 100644
--- a/src/wayland/meta-wayland-tablet.c
+++ b/src/wayland/meta-wayland-tablet.c
@@ -553,6 +553,9 @@ notify_axes (MetaWaylandTablet  *tablet,
 {
   guint32 axes;
 
+  if (!event->motion.axes)
+    return;
+
   axes = tablet->current_tool->axes;
 
   if (axes & WL_TABLET_TOOL_AXIS_FLAG_PRESSURE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]