[mutter/wip/tablet-protocol: 133/133] 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: 133/133] wayland: Ignore motion events with no axes from tablets
- Date: Tue, 31 Mar 2015 11:58:33 +0000 (UTC)
commit f0c39626dfbd770304383f78c98aa120b8543467
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 2179fe9..b152443 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]