aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/output.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2019-01-21 21:17:36 +1000
committerLibravatar emersion <contact@emersion.fr>2019-01-22 09:55:13 +0100
commit42f8a038c9740bb39690446865406c551c755d96 (patch)
tree6897b497e614b7e4433e5eef5b217dde0135f8fa /sway/commands/output.c
parentDon't allow noop output to be configured (diff)
downloadsway-42f8a038c9740bb39690446865406c551c755d96.tar.gz
sway-42f8a038c9740bb39690446865406c551c755d96.tar.zst
sway-42f8a038c9740bb39690446865406c551c755d96.zip
Remove assumption that noop output will be called NOOP-1
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r--sway/commands/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c
index 85b7fd23..40dbf3ca 100644
--- a/sway/commands/output.c
+++ b/sway/commands/output.c
@@ -29,7 +29,7 @@ struct cmd_results *cmd_output(int argc, char **argv) {
29 29
30 // The NOOP-1 output is a dummy output used when there's no outputs 30 // The NOOP-1 output is a dummy output used when there's no outputs
31 // connected. It should never be configured. 31 // connected. It should never be configured.
32 if (strcasecmp(argv[0], "NOOP-1") == 0) { 32 if (strcasecmp(argv[0], root->noop_output->wlr_output->name) == 0) {
33 return cmd_results_new(CMD_FAILURE, 33 return cmd_results_new(CMD_FAILURE,
34 "Refusing to configure the no op output"); 34 "Refusing to configure the no op output");
35 } 35 }