1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-03-24 17:26:22 -04:00

config_libconfig: fix parsing of unredir in window rules

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-08-29 23:07:19 +01:00
parent 6a2b6eeba6
commit c9361d3cbb
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -539,7 +539,7 @@ static enum window_unredir_option parse_unredir_option(config_setting_t *setting
return WINDOW_UNREDIR_INVALID;
}
if (strcmp(sval, "yes") == 0 || strcmp(sval, "true") == 0 ||
strcmp(sval, "default") == 0 || strcmp(sval, "when-possible-else-terminate")) {
strcmp(sval, "default") == 0 || strcmp(sval, "when-possible-else-terminate") == 0) {
return WINDOW_UNREDIR_WHEN_POSSIBLE_ELSE_TERMINATE;
}
if (strcmp(sval, "preferred") == 0 || strcmp(sval, "when-possible") == 0) {