Skip to content

Commit

Permalink
config_libconfig: fix parsing of unredir in window rules
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed Aug 29, 2024
1 parent 6a2b6ee commit c9361d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config_libconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c9361d3

Please sign in to comment.