diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-24 16:30:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-24 16:30:54 +0200 |
commit | 5024f0888581cde0a9bc6b86222c14a97890b479 (patch) | |
tree | 35941cb448213c81a4956360af05c53537809ff5 /swaylock/seat.c | |
parent | 38c44f2f27f218ed7e61c9910491eef78551d8ea (diff) | |
parent | 2d884d4e4f8b8e7cac87f8096c0cc31535bd0642 (diff) |
Merge pull request #1848 from snaggen/improved_key_handling
Improved key handling in swaylock
Diffstat (limited to 'swaylock/seat.c')
-rw-r--r-- | swaylock/seat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/swaylock/seat.c b/swaylock/seat.c index 21db7c4f..a81899a6 100644 --- a/swaylock/seat.c +++ b/swaylock/seat.c @@ -88,6 +88,7 @@ static void keyboard_modifiers(void *data, struct wl_keyboard *wl_keyboard, xkb_mod_mask_t mask = xkb_state_serialize_mods(state->xkb.state, XKB_STATE_MODS_DEPRESSED | XKB_STATE_MODS_LATCHED); state->xkb.modifiers = 0; + state->xkb.caps_lock = xkb_state_mod_name_is_active(state->xkb.state, XKB_MOD_NAME_CAPS, XKB_STATE_MODS_LOCKED); for (uint32_t i = 0; i < MASK_LAST; ++i) { if (mask & state->xkb.masks[i]) { state->xkb.modifiers |= XKB_MODS[i]; |