[mutter/wip/tablet-protocol: 200/200] 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: 200/200] wayland: Ignore motion events with no axes from tablets
- Date: Wed, 21 Oct 2015 10:08:27 +0000 (UTC)
commit 0affb1ef13b97f05011569dc6181c86bc495d432
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]