diff options
author | Luminarys <[email protected]> | 2015-08-23 12:22:45 -0500 |
---|---|---|
committer | Luminarys <[email protected]> | 2015-08-23 12:23:01 -0500 |
commit | e01cf0b56654ff459a98a90e5e35615ad8d9203e (patch) | |
tree | 7f3aff68c417f0b733621086860fd39f0b78211d /sway/commands.c | |
parent | 98fad060e28c81c8340afbb473615f7889a6097a (diff) |
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) { struct output_config *output = calloc(1, sizeof(struct output_config)); output->x = output->y = output->width = output->height = -1; output->name = strdup(argv[0]); - output->enabled = true; + output->enabled = true; // TODO: atoi doesn't handle invalid numbers - - if (strcmp(argv[1], "disable") == 0) { - output->enabled = false; - } + + if (strcmp(argv[1], "disable") == 0) { + output->enabled = false; + } int i; for (i = 1; i < argc; ++i) { |