mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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.
This commit is contained in:
parent
7346419295
commit
eac0e253e1
@ -374,17 +374,20 @@ meta_wayland_seat_handle_event (MetaWaylandSeat *seat,
|
|||||||
if (meta_wayland_seat_has_pointer (seat))
|
if (meta_wayland_seat_has_pointer (seat))
|
||||||
return meta_wayland_pointer_handle_event (seat->pointer, event);
|
return meta_wayland_pointer_handle_event (seat->pointer, event);
|
||||||
|
|
||||||
|
break;
|
||||||
case CLUTTER_KEY_PRESS:
|
case CLUTTER_KEY_PRESS:
|
||||||
case CLUTTER_KEY_RELEASE:
|
case CLUTTER_KEY_RELEASE:
|
||||||
if (meta_wayland_seat_has_keyboard (seat))
|
if (meta_wayland_seat_has_keyboard (seat))
|
||||||
return meta_wayland_keyboard_handle_event (seat->keyboard,
|
return meta_wayland_keyboard_handle_event (seat->keyboard,
|
||||||
(const ClutterKeyEvent *) event);
|
(const ClutterKeyEvent *) event);
|
||||||
|
break;
|
||||||
case CLUTTER_TOUCH_BEGIN:
|
case CLUTTER_TOUCH_BEGIN:
|
||||||
case CLUTTER_TOUCH_UPDATE:
|
case CLUTTER_TOUCH_UPDATE:
|
||||||
case CLUTTER_TOUCH_END:
|
case CLUTTER_TOUCH_END:
|
||||||
if (meta_wayland_seat_has_touch (seat))
|
if (meta_wayland_seat_has_touch (seat))
|
||||||
return meta_wayland_touch_handle_event (seat->touch, event);
|
return meta_wayland_touch_handle_event (seat->touch, event);
|
||||||
|
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user