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/output.c | |
parent | Add output config (diff) | |
download | sway-68ae989ceef0a144988c0a55b13aaacf514b957d.tar.gz sway-68ae989ceef0a144988c0a55b13aaacf514b957d.tar.zst sway-68ae989ceef0a144988c0a55b13aaacf514b957d.zip |
Init, merge output config params, use wlr_output_layout
Diffstat (limited to 'sway/commands/output.c')
-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) { | |||
31 | if (!output) { | 31 | if (!output) { |
32 | return cmd_results_new(CMD_FAILURE, "output", "Unable to allocate output config"); | 32 | return cmd_results_new(CMD_FAILURE, "output", "Unable to allocate output config"); |
33 | } | 33 | } |
34 | output->x = output->y = output->width = output->height = -1; | 34 | output_config_defaults(output); |
35 | output->name = strdup(name); | 35 | output->name = strdup(name); |
36 | output->enabled = -1; | ||
37 | output->scale = 1; | ||
38 | 36 | ||
39 | // TODO: atoi doesn't handle invalid numbers | 37 | // TODO: atoi doesn't handle invalid numbers |
40 | 38 | ||