diff options
author | Mattias Eriksson <snaggen@mayam.com> | 2018-04-20 14:46:30 +0200 |
---|---|---|
committer | Mattias Eriksson <snaggen@mayam.com> | 2018-04-24 15:40:30 +0200 |
commit | 2d884d4e4f8b8e7cac87f8096c0cc31535bd0642 (patch) | |
tree | 35941cb448213c81a4956360af05c53537809ff5 /swaylock/seat.c | |
parent | Merge pull request #1851 from RyanDwyer/container-descendants-crash (diff) | |
download | sway-2d884d4e4f8b8e7cac87f8096c0cc31535bd0642.tar.gz sway-2d884d4e4f8b8e7cac87f8096c0cc31535bd0642.tar.zst sway-2d884d4e4f8b8e7cac87f8096c0cc31535bd0642.zip |
Improved key handling in swaylock
Make escape clear buffer
Add indicator states for ctrl,shift,super et al
Add CapsLock indicator
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, | |||
88 | xkb_mod_mask_t mask = xkb_state_serialize_mods(state->xkb.state, | 88 | xkb_mod_mask_t mask = xkb_state_serialize_mods(state->xkb.state, |
89 | XKB_STATE_MODS_DEPRESSED | XKB_STATE_MODS_LATCHED); | 89 | XKB_STATE_MODS_DEPRESSED | XKB_STATE_MODS_LATCHED); |
90 | state->xkb.modifiers = 0; | 90 | state->xkb.modifiers = 0; |
91 | state->xkb.caps_lock = xkb_state_mod_name_is_active(state->xkb.state, XKB_MOD_NAME_CAPS, XKB_STATE_MODS_LOCKED); | ||
91 | for (uint32_t i = 0; i < MASK_LAST; ++i) { | 92 | for (uint32_t i = 0; i < MASK_LAST; ++i) { |
92 | if (mask & state->xkb.masks[i]) { | 93 | if (mask & state->xkb.masks[i]) { |
93 | state->xkb.modifiers |= XKB_MODS[i]; | 94 | state->xkb.modifiers |= XKB_MODS[i]; |