[mutter/wip/tablet-protocol: 15/15] wayland: Ignore motion events with no axes from tablets
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/tablet-protocol: 15/15] wayland: Ignore motion events with no axes from tablets
- Date: Wed, 21 Oct 2015 18:06:08 +0000 (UTC)
commit b927235e034c8ae7e98e7fb3b0a4937b3b5b02a2
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 7404db6..fb7e261 100644
--- a/src/wayland/meta-wayland-tablet.c
+++ b/src/wayland/meta-wayland-tablet.c
@@ -545,6 +545,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]