[PATCH weston] libinput-device: break after LIBINPUT_EVENT_TOUCH_UP
U. Artie Eoff
ullysses.a.eoff at intel.com
Fri Apr 11 18:37:03 PDT 2014
Need to break after handling LIBINPUT_EVENT_TOUCH_UP otherwise
we fall into the default case and end up logging that the event
is unknown and then return the wrong "handled" value.
Signed-off-by: U. Artie Eoff <ullysses.a.eoff at intel.com>
---
src/libinput-device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libinput-device.c b/src/libinput-device.c
index c8a6443..2105ade 100644
--- a/src/libinput-device.c
+++ b/src/libinput-device.c
@@ -227,6 +227,7 @@ evdev_device_process_event(struct libinput_event *event)
case LIBINPUT_EVENT_TOUCH_UP:
handle_touch_up(libinput_device,
libinput_event_get_touch_event(event));
+ break;
default:
handled = 0;
weston_log("unknown libinput event %d\n",
--
1.9.0
More information about the wayland-devel
mailing list