input: check for ‘effective’ modifiers, not ‘depressed’

When reading XKB modifier state, use XKB_STATE_MODS_EFFECTIVE, not
XKB_STATE_MODS_DEPRESSED.

This fixes handling of ‘sticky’ modifier keys.
This commit is contained in:
Daniel Eklöf 2021-10-02 17:33:01 +02:00
parent e789628f82
commit 8e4d020a41
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 12 additions and 6 deletions

View file

@ -38,6 +38,12 @@
### Deprecated
### Removed
### Fixed
* Sticky modifiers in input handling; when determining modifier
state, foot was looking at **depressed** modifiers, not
**effective** modifiers, like it should.
### Security
### Contributors