libinput-device: break after LIBINPUT_EVENT_TOUCH_UP
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 17 Apr 2014 14:53:24 +0000 (07:53 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 21 Apr 2014 21:35:46 +0000 (14:35 -0700)
We 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" result.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=77577

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/libinput-device.c

index c8a6443..2105ade 100644 (file)
@@ -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",