mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-27 11:59:50 +01:00
rootston: fix formatting for xwayland config
This commit is contained in:
parent
a538ef33c1
commit
4ccadf713b
1 changed files with 11 additions and 11 deletions
|
@ -194,17 +194,17 @@ static int config_ini_handler(void *user, const char *section, const char *name,
|
|||
const char *value) {
|
||||
struct roots_config *config = user;
|
||||
if (strcmp(section, "core") == 0) {
|
||||
if (strcmp(name, "xwayland") == 0) {
|
||||
if (strcasecmp(value, "true") == 0) {
|
||||
config->xwayland = true;
|
||||
} else if (strcasecmp(value, "false") == 0) {
|
||||
config->xwayland = false;
|
||||
} else {
|
||||
wlr_log(L_ERROR, "got unknown xwayland value: %s", value);
|
||||
}
|
||||
} else {
|
||||
wlr_log(L_ERROR, "got unknown core config: %s", name);
|
||||
}
|
||||
if (strcmp(name, "xwayland") == 0) {
|
||||
if (strcasecmp(value, "true") == 0) {
|
||||
config->xwayland = true;
|
||||
} else if (strcasecmp(value, "false") == 0) {
|
||||
config->xwayland = false;
|
||||
} else {
|
||||
wlr_log(L_ERROR, "got unknown xwayland value: %s", value);
|
||||
}
|
||||
} else {
|
||||
wlr_log(L_ERROR, "got unknown core config: %s", name);
|
||||
}
|
||||
} else if (strncmp(output_prefix, section, strlen(output_prefix)) == 0) {
|
||||
const char *output_name = section + strlen(output_prefix);
|
||||
struct output_config *oc;
|
||||
|
|
Loading…
Reference in a new issue