aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-06 19:45:43 +0100
committeremersion <contact@emersion.fr>2017-12-06 19:45:43 +0100
commit8764dc26c634379ca5b5c2c4fc26cf8be9adf027 (patch)
tree8e6298c8d4c234eb0dc87d04e9093d7df1c5f6b8 /sway/commands
parent41dd29161249dd6b6c3288a2d4cf63763f40ce14 (diff)
downloadsway-8764dc26c634379ca5b5c2c4fc26cf8be9adf027.tar.xz
Add new_output_config, update root container size on output hotplug
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c
index bbf8efc3..11da0ff6 100644
--- a/sway/commands/output.c
+++ b/sway/commands/output.c
@@ -27,11 +27,10 @@ struct cmd_results *cmd_output(int argc, char **argv) {
}
const char *name = argv[0];
- struct output_config *output = calloc(1, sizeof(struct output_config));
+ struct output_config *output = new_output_config();
if (!output) {
return cmd_results_new(CMD_FAILURE, "output", "Unable to allocate output config");
}
- output_config_defaults(output);
output->name = strdup(name);
// TODO: atoi doesn't handle invalid numbers