mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Merge branch 'master' into feature/multiseat
This commit is contained in:
commit
2a9dc60f28
27 changed files with 375 additions and 93 deletions
|
|
@ -221,6 +221,7 @@ static int config_ini_handler(void *user, const char *section, const char *name,
|
|||
oc = calloc(1, sizeof(struct output_config));
|
||||
oc->name = strdup(output_name);
|
||||
oc->transform = WL_OUTPUT_TRANSFORM_NORMAL;
|
||||
oc->scale = 1;
|
||||
wl_list_insert(&config->outputs, &oc->link);
|
||||
}
|
||||
|
||||
|
|
@ -228,6 +229,9 @@ static int config_ini_handler(void *user, const char *section, const char *name,
|
|||
oc->x = strtol(value, NULL, 10);
|
||||
} else if (strcmp(name, "y") == 0) {
|
||||
oc->y = strtol(value, NULL, 10);
|
||||
} else if (strcmp(name, "scale") == 0) {
|
||||
oc->scale = strtol(value, NULL, 10);
|
||||
assert(oc->scale >= 1);
|
||||
} else if (strcmp(name, "rotate") == 0) {
|
||||
if (strcmp(value, "normal") == 0) {
|
||||
oc->transform = WL_OUTPUT_TRANSFORM_NORMAL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue