From 7504e16527d4307343ac13f7543394b7dcfc5977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Wed, 9 Nov 2016 22:23:01 +0100 Subject: [PATCH] Add Enter on C-m (#103) --- i3lock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i3lock.c b/i3lock.c index 06531e6..761ed32 100644 --- a/i3lock.c +++ b/i3lock.c @@ -386,10 +386,11 @@ static void handle_key_press(xcb_key_press_event_t *event) { switch (ksym) { case XKB_KEY_j: + case XKB_KEY_m: case XKB_KEY_Return: case XKB_KEY_KP_Enter: case XKB_KEY_XF86ScreenSaver: - if (ksym == XKB_KEY_j && !ctrl) + if ((ksym == XKB_KEY_j || ksym == XKB_KEY_m) && !ctrl) break; if (pam_state == STATE_PAM_WRONG) {