diff options
Diffstat (limited to 'sway/commands/focus.c')
-rw-r--r-- | sway/commands/focus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/focus.c b/sway/commands/focus.c index 2426a7f4..894025ad 100644 --- a/sway/commands/focus.c +++ b/sway/commands/focus.c | |||
@@ -84,6 +84,9 @@ static struct cmd_results *focus_output(struct sway_container *con, | |||
84 | } | 84 | } |
85 | 85 | ||
86 | struct cmd_results *cmd_focus(int argc, char **argv) { | 86 | struct cmd_results *cmd_focus(int argc, char **argv) { |
87 | if (config->reading || !config->active) { | ||
88 | return cmd_results_new(CMD_DEFER, NULL, NULL); | ||
89 | } | ||
87 | struct sway_container *con = config->handler_context.current_container; | 90 | struct sway_container *con = config->handler_context.current_container; |
88 | struct sway_seat *seat = config->handler_context.seat; | 91 | struct sway_seat *seat = config->handler_context.seat; |
89 | if (con->type < C_WORKSPACE) { | 92 | if (con->type < C_WORKSPACE) { |