[PATCH v2 libinput 5.2/6] evdev: split resetting to a neutral state out

Peter Hutterer peter.hutterer at who-t.net
Tue Sep 6 01:02:19 UTC 2016


No functional changes.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Changes to v1:
- new in this series

 src/evdev.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/evdev.c b/src/evdev.c
index 7c668b1..3b48c3e 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1160,10 +1160,9 @@ release_pressed_keys(struct fallback_dispatch *dispatch,
 }
 
 static void
-fallback_suspend(struct evdev_dispatch *evdev_dispatch,
-		 struct evdev_device *device)
+fallback_return_to_neutral_state(struct fallback_dispatch *dispatch,
+				 struct evdev_device *device)
 {
-	struct fallback_dispatch *dispatch = (struct fallback_dispatch*)evdev_dispatch;
 	struct libinput *libinput = evdev_libinput_context(device);
 	uint64_t time;
 
@@ -1176,6 +1175,15 @@ fallback_suspend(struct evdev_dispatch *evdev_dispatch,
 }
 
 static void
+fallback_suspend(struct evdev_dispatch *evdev_dispatch,
+		 struct evdev_device *device)
+{
+	struct fallback_dispatch *dispatch = (struct fallback_dispatch*)evdev_dispatch;
+
+	fallback_return_to_neutral_state(dispatch, device);
+}
+
+static void
 fallback_destroy(struct evdev_dispatch *evdev_dispatch)
 {
 	struct fallback_dispatch *dispatch = (struct fallback_dispatch*)evdev_dispatch;
-- 
2.7.4



More information about the wayland-devel mailing list