Init, merge output config params, use wlr_output_layout

This commit is contained in:
emersion 2017-12-06 12:57:13 +01:00
parent aaae59026f
commit 68ae989cee
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 33 additions and 25 deletions

View file

@ -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