aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/output
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2019-01-20 19:05:28 +1000
committeremersion <contact@emersion.fr>2019-01-22 09:55:13 +0100
commit7f8ea60e71d3185f47954844d9e974bdb49b0c41 (patch)
tree4ded870c4991206856e49ea35ff5c2f42484be2d /sway/commands/output
parente815e48ceebfb43627b8d1427400aa51bd93bf7d (diff)
Don't allow noop output to be configured
Diffstat (limited to 'sway/commands/output')
-rw-r--r--sway/commands/output/enable.c9
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 @@
-#include <strings.h>
#include "sway/commands.h"
#include "sway/config.h"
@@ -7,14 +6,6 @@ struct cmd_results *output_cmd_enable(int argc, char **argv) {
return cmd_results_new(CMD_FAILURE, "Missing output config");
}
- // The NOOP-1 output is a dummy output used when there's no outputs
- // connected. It should never be enabled.
- char *output_name = config->handler_context.output_config->name;
- if (strcasecmp(output_name, "NOOP-1") == 0) {
- return cmd_results_new(CMD_FAILURE,
- "Refusing to enable the no op output");
- }
-
config->handler_context.output_config->enabled = 1;
config->handler_context.leftovers.argc = argc;