diff options
author | 2019-01-05 23:45:38 -0500 | |
---|---|---|
committer | 2019-01-05 23:45:38 -0500 | |
commit | 728e5700dd59f392712d51866eff78ed5074d8ef (patch) | |
tree | f92e1eb17dd10ed186ce62619c4c7ce3b570ac32 /swaylock/password.c | |
parent | Fix urgency documentation (diff) | |
parent | swaylock: Fix caps lock not updating immediately (diff) | |
download | sway-728e5700dd59f392712d51866eff78ed5074d8ef.tar.gz sway-728e5700dd59f392712d51866eff78ed5074d8ef.tar.zst sway-728e5700dd59f392712d51866eff78ed5074d8ef.zip |
Merge pull request #3367 from oscarwcl/swaylock-fix-capslock
swaylock: Fix caps lock not updating immediately
Diffstat (limited to 'swaylock/password.c')
-rw-r--r-- | swaylock/password.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/swaylock/password.c b/swaylock/password.c index 3059203a..3bd113ad 100644 --- a/swaylock/password.c +++ b/swaylock/password.c | |||
@@ -146,14 +146,6 @@ void swaylock_handle_key(struct swaylock_state *state, | |||
146 | schedule_indicator_clear(state); | 146 | schedule_indicator_clear(state); |
147 | break; | 147 | break; |
148 | case XKB_KEY_Caps_Lock: | 148 | case XKB_KEY_Caps_Lock: |
149 | /* The state is getting active after this | ||
150 | * so we need to manually toggle it */ | ||
151 | state->xkb.caps_lock = !state->xkb.caps_lock; | ||
152 | state->auth_state = AUTH_STATE_INPUT_NOP; | ||
153 | damage_state(state); | ||
154 | schedule_indicator_clear(state); | ||
155 | schedule_password_clear(state); | ||
156 | break; | ||
157 | case XKB_KEY_Shift_L: | 149 | case XKB_KEY_Shift_L: |
158 | case XKB_KEY_Shift_R: | 150 | case XKB_KEY_Shift_R: |
159 | case XKB_KEY_Control_L: | 151 | case XKB_KEY_Control_L: |