mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Init, merge output config params, use wlr_output_layout
This commit is contained in:
parent
aaae59026f
commit
68ae989cee
4 changed files with 33 additions and 25 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue