diff --git a/src/action.c b/src/action.c index 3b03558c..6f99cc46 100644 --- a/src/action.c +++ b/src/action.c @@ -877,6 +877,14 @@ actions_run(struct view *activator, struct server *server, } wl_list_for_each(action, actions, link) { + if (server->input_mode == LAB_INPUT_STATE_WINDOW_SWITCHER + && action->type != ACTION_TYPE_NEXT_WINDOW + && action->type != ACTION_TYPE_PREVIOUS_WINDOW) { + wlr_log(WLR_INFO, "Only NextWindow or PreviousWindow " + "actions are accepted while window switching."); + continue; + } + wlr_log(WLR_DEBUG, "Handling action %u: %s", action->type, action_names[action->type]);