Skip to content

Commit

Permalink
Fix inverted has_mode condition
Browse files Browse the repository at this point in the history
Fixes: df298c8 ("Use an array to store current modes")
Closes: #437
  • Loading branch information
emersion committed Jul 6, 2022
1 parent d0ae254 commit 413c160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion criteria.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ bool match_criteria(struct mako_criteria *criteria,
return false;
}

if (spec.mode && has_mode(notif->state, criteria->mode)) {
if (spec.mode && !has_mode(notif->state, criteria->mode)) {
return false;
}

Expand Down

0 comments on commit 413c160

Please sign in to comment.