mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-30 08:25:58 +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) {
|
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 a new issue