diff options
author | ppascher <ppascher@users.noreply.github.com> | 2018-10-25 19:48:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 19:48:45 +0200 |
commit | 2123dfa15f32a1f3abde597c8ba0b3698761be31 (patch) | |
tree | 6882f75fc0488f0564cb3428d2a5c2b5adcd06d0 | |
parent | Update workspace.c (diff) | |
download | sway-2123dfa15f32a1f3abde597c8ba0b3698761be31.tar.gz sway-2123dfa15f32a1f3abde597c8ba0b3698761be31.tar.zst sway-2123dfa15f32a1f3abde597c8ba0b3698761be31.zip |
Update workspace.c
re-added missing output check after config load
-rw-r--r-- | sway/commands/workspace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c index 745b40c7..5abbb676 100644 --- a/sway/commands/workspace.c +++ b/sway/commands/workspace.c | |||
@@ -108,6 +108,9 @@ struct cmd_results *cmd_workspace(int argc, char **argv) { | |||
108 | } else { | 108 | } else { |
109 | if (config->reading || !config->active) { | 109 | if (config->reading || !config->active) { |
110 | return cmd_results_new(CMD_DEFER, "workspace", NULL); | 110 | return cmd_results_new(CMD_DEFER, "workspace", NULL); |
111 | } else if (!root->outputs->length) { | ||
112 | return cmd_results_new(CMD_INVALID, "workspace", | ||
113 | "Can't run this command while there's no outputs connected."); | ||
111 | } | 114 | } |
112 | 115 | ||
113 | bool no_auto_back_and_forth = false; | 116 | bool no_auto_back_and_forth = false; |