From eac0e253e1083e5d1c4158e4f88cf2913d5240e7 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 17 Jan 2018 14:00:44 +0100 Subject: [PATCH] wayland: Add missing breaks on MetaWaylandSeat event handler The events might fall through if there's no corresponding active pointer/keyboard/touch interface. Barring bugs this should be safe to do, just a bit wasteful. --- src/wayland/meta-wayland-seat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c index a574594f4..68a21155b 100644 --- a/src/wayland/meta-wayland-seat.c +++ b/src/wayland/meta-wayland-seat.c @@ -374,17 +374,20 @@ meta_wayland_seat_handle_event (MetaWaylandSeat *seat, if (meta_wayland_seat_has_pointer (seat)) return meta_wayland_pointer_handle_event (seat->pointer, event); + break; case CLUTTER_KEY_PRESS: case CLUTTER_KEY_RELEASE: if (meta_wayland_seat_has_keyboard (seat)) return meta_wayland_keyboard_handle_event (seat->keyboard, (const ClutterKeyEvent *) event); + break; case CLUTTER_TOUCH_BEGIN: case CLUTTER_TOUCH_UPDATE: case CLUTTER_TOUCH_END: if (meta_wayland_seat_has_touch (seat)) return meta_wayland_touch_handle_event (seat->touch, event); + break; default: break; }