[PATCH libinput 3/6] touchpad: Refactor tp_post_scroll_events()
Hans de Goede
hdegoede at redhat.com
Fri May 23 07:06:24 PDT 2014
Put the actual scroll event posting in the straight path.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/evdev-mt-touchpad.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 2455c36..ed668ee 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -536,11 +536,11 @@ tp_post_scroll_events(struct tp_dispatch *tp, uint64_t time)
if (nfingers_down != 2) {
tp_stop_scroll_events(tp, time);
- } else {
- tp_post_twofinger_scroll(tp, time);
- return 1;
+ return 0;
}
- return 0;
+
+ tp_post_twofinger_scroll(tp, time);
+ return 1;
}
static void
--
1.9.3
More information about the wayland-devel
mailing list