diff options
author | emersion <contact@emersion.fr> | 2017-12-06 12:57:13 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-06 12:57:13 +0100 |
commit | 68ae989ceef0a144988c0a55b13aaacf514b957d (patch) | |
tree | 1b15d250117736185d287b65c4841163eaecff48 /sway/commands | |
parent | aaae59026ff3751190b93277ac6d7566e373c892 (diff) | |
download | sway-68ae989ceef0a144988c0a55b13aaacf514b957d.tar.xz |
Init, merge output config params, use wlr_output_layout
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/output.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c index c964bef7..bbf8efc3 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c @@ -31,10 +31,8 @@ struct cmd_results *cmd_output(int argc, char **argv) { if (!output) { return cmd_results_new(CMD_FAILURE, "output", "Unable to allocate output config"); } - output->x = output->y = output->width = output->height = -1; + output_config_defaults(output); output->name = strdup(name); - output->enabled = -1; - output->scale = 1; // TODO: atoi doesn't handle invalid numbers |