From 4363430d8d4648d4e3c69f92f8f7cb40560aa2d5 Mon Sep 17 00:00:00 2001 From: Milkey Mouse Date: Thu, 20 Dec 2018 12:19:21 -0800 Subject: [PATCH] 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 ;) --- password.c | 1 + 1 file changed, 1 insertion(+) diff --git a/password.c b/password.c index db8ecae..4424451 100644 --- a/password.c +++ b/password.c @@ -165,6 +165,7 @@ void swaylock_handle_key(struct swaylock_state *state, schedule_indicator_clear(state); schedule_password_clear(state); break; + case XKB_KEY_c: /* fallthrough */ case XKB_KEY_u: if (state->xkb.control) { clear_password_buffer(&state->password);