diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-23 12:34:18 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-23 12:34:18 -0700 |
commit | 51ab3c918030565cefbb82dc8e899f324e6c5a21 (patch) | |
tree | 1a9e633ead0ff50f55987310621dab39531d2305 /sway/commands.c | |
parent | d72cc925416847adaf2636cea0773ef6d9a46461 (diff) | |
parent | 1ac0c8cd47f734809c20bf6a6a0a7278680ed597 (diff) |
merge
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 5de1fb0c..7ee8c558 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -372,8 +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; // TODO: atoi doesn't handle invalid numbers + + if (strcasecmp(argv[1], "disable") == 0) { + output->enabled = false; + } int i; for (i = 1; i < argc; ++i) { |