aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands')
-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) {
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