Use G_GNUC_FALLTHROUGH instead of comments
Get the same task done in a bit more C:y way. https://gitlab.gnome.org/GNOME/mutter/merge_requests/998
This commit is contained in:
@ -282,7 +282,7 @@ meta_screen_cast_monitor_stream_src_enable (MetaScreenCastStreamSrc *src)
|
||||
g_signal_connect_after (cursor_tracker, "cursor-changed",
|
||||
G_CALLBACK (cursor_changed),
|
||||
monitor_src);
|
||||
/* Intentional fall-through */
|
||||
G_GNUC_FALLTHROUGH;
|
||||
case META_SCREEN_CAST_CURSOR_MODE_HIDDEN:
|
||||
monitor_src->paint_watch =
|
||||
meta_stage_watch_view (meta_stage,
|
||||
|
@ -367,7 +367,7 @@ emit_barrier_event (MetaBarrierImplNative *self,
|
||||
case META_BARRIER_STATE_LEFT:
|
||||
self->state = META_BARRIER_STATE_ACTIVE;
|
||||
|
||||
/* Intentional fall-through. */
|
||||
G_GNUC_FALLTHROUGH;
|
||||
case META_BARRIER_STATE_HELD:
|
||||
event->dt = time - self->last_event_time;
|
||||
|
||||
|
@ -275,7 +275,7 @@ maybe_spoof_event_as_stage_event (MetaBackendX11 *x11,
|
||||
case XI_ButtonRelease:
|
||||
maybe_translate_touch_replay_pointer_event (x11,
|
||||
(XIDeviceEvent *) input_event);
|
||||
/* Intentional fall-through */
|
||||
G_GNUC_FALLTHROUGH;
|
||||
case XI_KeyPress:
|
||||
case XI_KeyRelease:
|
||||
case XI_TouchBegin:
|
||||
|
Reference in New Issue
Block a user