summaryrefslogtreecommitdiffstats
path: root/sway/commands/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r--sway/commands/output.c4
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