[PATCH libinput 5/5] tablet: don't set a pressure offset of 0

Peter Hutterer peter.hutterer at who-t.net
Mon Jan 4 17:21:09 PST 2016


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/evdev-tablet.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index 0c20483..426d83f 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -1049,6 +1049,9 @@ detect_pressure_offset(struct tablet_dispatch *tablet,
 		return;
 	}
 
+	if (offset == 0)
+		return;
+
 	/* we only set a pressure offset on proximity in */
 	if (!tablet_has_status(tablet, TABLET_TOOL_ENTERING_PROXIMITY))
 		return;
-- 
2.5.0



More information about the wayland-devel mailing list