[PATCH libinput 10/11] touchpad: a pressure change alone needs touch processing, mark as dirty

Peter Hutterer peter.hutterer at who-t.net
Tue Jul 21 22:09:30 PDT 2015


A thumb may not move, but may change pressure so we need to process
accordingly.

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

diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index c06b517..0b39bf6 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -315,6 +315,8 @@ tp_process_absolute(struct tp_dispatch *tp,
 		break;
 	case ABS_MT_PRESSURE:
 		t->pressure = e->value;
+		t->dirty = true;
+		tp->queued |= TOUCHPAD_EVENT_MOTION;
 		break;
 	}
 }
-- 
2.4.3



More information about the wayland-devel mailing list