Defer the focus commands

This commit is contained in:
Ryan Dwyer 2018-07-19 16:41:02 +10:00
parent a173b79c54
commit 08736255a3
2 changed files with 4 additions and 1 deletions

View file

@ -84,6 +84,9 @@ static struct cmd_results *focus_output(struct sway_container *con,
}
struct cmd_results *cmd_focus(int argc, char **argv) {
if (config->reading || !config->active) {
return cmd_results_new(CMD_DEFER, NULL, NULL);
}
struct sway_container *con = config->handler_context.current_container;
struct sway_seat *seat = config->handler_context.seat;
if (con->type < C_WORKSPACE) {