diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-23 14:34:20 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-23 14:34:20 -0400 |
commit | 663f53b22a0d97a300345090a92b8567b6a0af82 (patch) | |
tree | 45f2c39c1f883e1b80877c29848003c8ee2c1efc /sway/commands.c | |
parent | e78221e6a0413b8cccd41f75288798ae15b792b6 (diff) | |
parent | 7a213889974daad72fd6b925edc3dc2cf1a394a1 (diff) |
Merge pull request #123 from Luminarys/master
Added in output disabling
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) { |