summaryrefslogtreecommitdiff
path: root/password.c
diff options
context:
space:
mode:
authorOscar Cowdery Lack <oscar.cowderylack@gmail.com>2019-01-03 09:12:01 +1100
committerOscar Cowdery Lack <oscar.cowderylack@gmail.com>2019-01-03 09:28:14 +1100
commitaae74613c6650a69ffa52f8f65a76d45edc66998 (patch)
treece3f3b61d95a89357e03102e31be3b034024df0a /password.c
parent51838df9162fc3173538187c2b12f31fc35dcfb1 (diff)
swaylock: Fix caps lock not updating immediately
Partially fixes #2788. This change makes it so the lock screen is redrawn whenever the caps lock modifier state changes, rather on relying on the keypress event. This didn't work because caps lock is disabled when the key is released, not pressed, so the caps lock indicator does not go away until the next keypress event.
Diffstat (limited to 'password.c')
-rw-r--r--password.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/password.c b/password.c
index 3059203..3bd113a 100644
--- a/password.c
+++ b/password.c
@@ -146,14 +146,6 @@ void swaylock_handle_key(struct swaylock_state *state,
schedule_indicator_clear(state);
break;
case XKB_KEY_Caps_Lock:
- /* The state is getting active after this
- * so we need to manually toggle it */
- state->xkb.caps_lock = !state->xkb.caps_lock;
- state->auth_state = AUTH_STATE_INPUT_NOP;
- damage_state(state);
- schedule_indicator_clear(state);
- schedule_password_clear(state);
- break;
case XKB_KEY_Shift_L:
case XKB_KEY_Shift_R:
case XKB_KEY_Control_L: