From b5b7dab95398aa3e62943961e8be0fc87d5caad0 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Mon, 21 Jan 2019 21:17:36 +1000 Subject: [PATCH] Remove assumption that noop output will be called NOOP-1 --- sway/commands/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/output.c b/sway/commands/output.c index edfc86165..dc23c78a2 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"); }