Merge pull request #531 from acrisci/keyboard-num-keycodes

wlr-keyboard: keep track of number of keycodes pressed
This commit is contained in:
Drew DeVault 2017-12-27 16:14:06 -08:00 committed by GitHub
commit 9c163b7d38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 13 deletions

View file

@ -44,6 +44,7 @@ struct wlr_keyboard {
xkb_mod_index_t mod_indexes[WLR_MODIFIER_COUNT];
uint32_t keycodes[WLR_KEYBOARD_KEYS_CAP];
size_t num_keycodes;
struct {
xkb_mod_mask_t depressed;
xkb_mod_mask_t latched;