diff options
author | 2015-08-23 12:22:45 -0500 | |
---|---|---|
committer | 2015-08-23 12:23:01 -0500 | |
commit | e01cf0b56654ff459a98a90e5e35615ad8d9203e (patch) | |
tree | 7f3aff68c417f0b733621086860fd39f0b78211d /sway/commands.c | |
parent | Added in glitchy disabling (diff) | |
download | sway-e01cf0b56654ff459a98a90e5e35615ad8d9203e.tar.gz sway-e01cf0b56654ff459a98a90e5e35615ad8d9203e.tar.zst sway-e01cf0b56654ff459a98a90e5e35615ad8d9203e.zip |
Added in glitchy disabling
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 10 |
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) { |