diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-01-21 21:17:36 +1000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-01-21 21:17:36 +1000 |
| commit | a67c380a43e96baa646e485b04406004a51af674 (patch) | |
| tree | 6897b497e614b7e4433e5eef5b217dde0135f8fa | |
| parent | 05f412840b5775d4ce0ff7c7859fddedb00441f3 (diff) | |
Remove assumption that noop output will be called NOOP-1
| -rw-r--r-- | sway/commands/output.c | 2 |
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) { // The NOOP-1 output is a dummy output used when there's no outputs // connected. It should never be configured. - if (strcasecmp(argv[0], "NOOP-1") == 0) { + if (strcasecmp(argv[0], root->noop_output->wlr_output->name) == 0) { return cmd_results_new(CMD_FAILURE, "Refusing to configure the no op output"); } |
