diff options
Diffstat (limited to 'sway/commands/gaps.c')
-rw-r--r-- | sway/commands/gaps.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/gaps.c b/sway/commands/gaps.c index 042b415f..ca8cb27a 100644 --- a/sway/commands/gaps.c +++ b/sway/commands/gaps.c | |||
@@ -88,6 +88,10 @@ static struct cmd_results *gaps_set_runtime(int argc, char **argv) { | |||
88 | if (error) { | 88 | if (error) { |
89 | return error; | 89 | return error; |
90 | } | 90 | } |
91 | if (!root->outputs->length) { | ||
92 | return cmd_results_new(CMD_INVALID, "gaps", | ||
93 | "Can't run this command while there's no outputs connected."); | ||
94 | } | ||
91 | 95 | ||
92 | struct gaps_data data; | 96 | struct gaps_data data; |
93 | 97 | ||