From 6ad9ebf3e14deac54a298c10df3e8701061fe495 Mon Sep 17 00:00:00 2001 From: Martin Trojer Date: Thu, 29 Oct 2026 06:58:01 +0000 Subject: seat: don't repeat password submission Thread a bool repeat flag from the key-repeat timer into swaylock_handle_key (real presses pass false) and skip submit_password on repeats, so holding Return/KP_Enter or Ctrl-D/J/M no longer sends repeated attempts to PAM. Repeats of other keys are unchanged, and the submit keys stay defined in one place (password.c). --- include/swaylock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/swaylock.h b/include/swaylock.h index cd4e73e..0d5f3ae 100644 --- a/include/swaylock.h +++ b/include/swaylock.h @@ -133,7 +133,7 @@ struct swaylock_image { }; void swaylock_handle_key(struct swaylock_state *state, - xkb_keysym_t keysym, uint32_t codepoint); + xkb_keysym_t keysym, uint32_t codepoint, bool repeat); void render(struct swaylock_surface *surface); void damage_state(struct swaylock_state *state); -- cgit v1.2.3