mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
session: only update activation environment...
...when running DRM backend or by explicit request
This commit is contained in:
parent
22fe8cf546
commit
c9d08f8218
4 changed files with 57 additions and 9 deletions
|
|
@ -14,12 +14,16 @@ parse_bool(const char *str, int default_value)
|
|||
return true;
|
||||
} else if (!strcasecmp(str, "on")) {
|
||||
return true;
|
||||
} else if (!strcmp(str, "1")) {
|
||||
return true;
|
||||
} else if (!strcasecmp(str, "no")) {
|
||||
return false;
|
||||
} else if (!strcasecmp(str, "false")) {
|
||||
return false;
|
||||
} else if (!strcasecmp(str, "off")) {
|
||||
return false;
|
||||
} else if (!strcmp(str, "0")) {
|
||||
return false;
|
||||
}
|
||||
error_not_a_boolean:
|
||||
wlr_log(WLR_ERROR, "(%s) is not a boolean value", str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue