Merge branch 'match-all-required-modifiers-before-unshifting-symbol'

Closes #407
This commit is contained in:
Daniel Eklöf 2021-03-21 16:22:44 +01:00
commit 57a663a0c7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 6 additions and 1 deletions

View file

@ -30,6 +30,11 @@
### Deprecated
### Removed
### Fixed
* Logic that repairs invalid key bindings ended up breaking valid key
bindings instead (https://codeberg.org/dnkl/foot/issues/407).
### Security
### Contributors

View file

@ -450,7 +450,7 @@ maybe_repair_key_combo(const struct seat *seat,
/* Check if key combos 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};