diff options
Diffstat (limited to 'sway/commands/output')
-rw-r--r-- | sway/commands/output/enable.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/commands/output/enable.c b/sway/commands/output/enable.c index 0c98b481..bae3961f 100644 --- a/sway/commands/output/enable.c +++ b/sway/commands/output/enable.c | |||
@@ -1,4 +1,3 @@ | |||
1 | #include <strings.h> | ||
2 | #include "sway/commands.h" | 1 | #include "sway/commands.h" |
3 | #include "sway/config.h" | 2 | #include "sway/config.h" |
4 | 3 | ||
@@ -7,14 +6,6 @@ struct cmd_results *output_cmd_enable(int argc, char **argv) { | |||
7 | return cmd_results_new(CMD_FAILURE, "Missing output config"); | 6 | return cmd_results_new(CMD_FAILURE, "Missing output config"); |
8 | } | 7 | } |
9 | 8 | ||
10 | // The NOOP-1 output is a dummy output used when there's no outputs | ||
11 | // connected. It should never be enabled. | ||
12 | char *output_name = config->handler_context.output_config->name; | ||
13 | if (strcasecmp(output_name, "NOOP-1") == 0) { | ||
14 | return cmd_results_new(CMD_FAILURE, | ||
15 | "Refusing to enable the no op output"); | ||
16 | } | ||
17 | |||
18 | config->handler_context.output_config->enabled = 1; | 9 | config->handler_context.output_config->enabled = 1; |
19 | 10 | ||
20 | config->handler_context.leftovers.argc = argc; | 11 | config->handler_context.leftovers.argc = argc; |