rootston: fix formatting for xwayland config
This commit is contained in:
parent
a538ef33c1
commit
4ccadf713b
|
@ -194,17 +194,17 @@ static int config_ini_handler(void *user, const char *section, const char *name,
|
||||||
const char *value) {
|
const char *value) {
|
||||||
struct roots_config *config = user;
|
struct roots_config *config = user;
|
||||||
if (strcmp(section, "core") == 0) {
|
if (strcmp(section, "core") == 0) {
|
||||||
if (strcmp(name, "xwayland") == 0) {
|
if (strcmp(name, "xwayland") == 0) {
|
||||||
if (strcasecmp(value, "true") == 0) {
|
if (strcasecmp(value, "true") == 0) {
|
||||||
config->xwayland = true;
|
config->xwayland = true;
|
||||||
} else if (strcasecmp(value, "false") == 0) {
|
} else if (strcasecmp(value, "false") == 0) {
|
||||||
config->xwayland = false;
|
config->xwayland = false;
|
||||||
} else {
|
} else {
|
||||||
wlr_log(L_ERROR, "got unknown xwayland value: %s", value);
|
wlr_log(L_ERROR, "got unknown xwayland value: %s", value);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
wlr_log(L_ERROR, "got unknown core config: %s", name);
|
wlr_log(L_ERROR, "got unknown core config: %s", name);
|
||||||
}
|
}
|
||||||
} else if (strncmp(output_prefix, section, strlen(output_prefix)) == 0) {
|
} else if (strncmp(output_prefix, section, strlen(output_prefix)) == 0) {
|
||||||
const char *output_name = section + strlen(output_prefix);
|
const char *output_name = section + strlen(output_prefix);
|
||||||
struct output_config *oc;
|
struct output_config *oc;
|
||||||
|
|
Loading…
Reference in New Issue