aboutsummaryrefslogtreecommitdiffstats
path: root/swaylock
diff options
context:
space:
mode:
authorLibravatar Milkey Mouse <milkeymouse@meme.institute>2018-12-20 12:19:21 -0800
committerLibravatar emersion <contact@emersion.fr>2018-12-23 12:08:03 +0100
commit9877189ea3574625e165202c61a497bdaeb46656 (patch)
treec78c6213beaa83d5d708a5072b9f3ab91dda4349 /swaylock
parentFix wlr_box_intersection args for wlroots 1441 (diff)
downloadsway-9877189ea3574625e165202c61a497bdaeb46656.tar.gz
sway-9877189ea3574625e165202c61a497bdaeb46656.tar.zst
sway-9877189ea3574625e165202c61a497bdaeb46656.zip
swaylock: Clear password buffer on Ctrl-C
I've got in the habit of using Ctrl-C with login(1) to restart password entry. If Sway does the same thing I don't have to retrain my login muscle memory ;)
Diffstat (limited to 'swaylock')
-rw-r--r--swaylock/password.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaylock/password.c b/swaylock/password.c
index db8ecaeb..44244519 100644
--- a/swaylock/password.c
+++ b/swaylock/password.c
@@ -165,6 +165,7 @@ void swaylock_handle_key(struct swaylock_state *state,
165 schedule_indicator_clear(state); 165 schedule_indicator_clear(state);
166 schedule_password_clear(state); 166 schedule_password_clear(state);
167 break; 167 break;
168 case XKB_KEY_c: /* fallthrough */
168 case XKB_KEY_u: 169 case XKB_KEY_u:
169 if (state->xkb.control) { 170 if (state->xkb.control) {
170 clear_password_buffer(&state->password); 171 clear_password_buffer(&state->password);