diff options
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r-- | sway/commands/output.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c index 74ca9d0b..85b7fd23 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <strings.h> | ||
1 | #include "sway/commands.h" | 2 | #include "sway/commands.h" |
2 | #include "sway/config.h" | 3 | #include "sway/config.h" |
3 | #include "sway/output.h" | 4 | #include "sway/output.h" |
@@ -26,6 +27,13 @@ struct cmd_results *cmd_output(int argc, char **argv) { | |||
26 | return error; | 27 | return error; |
27 | } | 28 | } |
28 | 29 | ||
30 | // The NOOP-1 output is a dummy output used when there's no outputs | ||
31 | // connected. It should never be configured. | ||
32 | if (strcasecmp(argv[0], "NOOP-1") == 0) { | ||
33 | return cmd_results_new(CMD_FAILURE, | ||
34 | "Refusing to configure the no op output"); | ||
35 | } | ||
36 | |||
29 | struct output_config *output = new_output_config(argv[0]); | 37 | struct output_config *output = new_output_config(argv[0]); |
30 | if (!output) { | 38 | if (!output) { |
31 | sway_log(SWAY_ERROR, "Failed to allocate output config"); | 39 | sway_log(SWAY_ERROR, "Failed to allocate output config"); |