summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 9a0bc076..ae75ec67 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -372,13 +372,13 @@ static bool cmd_output(struct sway_config *config, int argc, char **argv) {
372 struct output_config *output = calloc(1, sizeof(struct output_config)); 372 struct output_config *output = calloc(1, sizeof(struct output_config));
373 output->x = output->y = output->width = output->height = -1; 373 output->x = output->y = output->width = output->height = -1;
374 output->name = strdup(argv[0]); 374 output->name = strdup(argv[0]);
375 output->enabled = true; 375 output->enabled = true;
376 376
377 // TODO: atoi doesn't handle invalid numbers 377 // TODO: atoi doesn't handle invalid numbers
378 378
379 if (strcmp(argv[1], "disable") == 0) { 379 if (strcmp(argv[1], "disable") == 0) {
380 output->enabled = false; 380 output->enabled = false;
381 } 381 }
382 382
383 int i; 383 int i;
384 for (i = 1; i < argc; ++i) { 384 for (i = 1; i < argc; ++i) {