aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-21 15:22:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-21 15:22:44 +0000
commit57a663a0c7a83812cc66226f7de50f3c89fd72bc (patch)
tree827a31068637de9585c70b1d64d603259769e38d /input.c
parentdoc: benchmark: update "workstation" benchmarks with 1.7.0 results (diff)
parentinput: must have all required modifiers to un-shift a symbol (diff)
Merge branch 'match-all-required-modifiers-before-unshifting-symbol'
Closes #407
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index bc28bbf2..9a26e778 100644
--- a/input.c
+++ b/input.c
@@ -450,7 +450,7 @@ maybe_repair_key_combo(const struct seat *seat,
/* Check if key combo’s modifier set intersects */
for (size_t j = 0; j < mod_mask_count; j++) {
- if (!(mod_masks[j] & mods))
+ if ((mod_masks[j] & mods) != mod_masks[j])
continue;
char combo[64] = {0};