From 8eecef62fb4837d42a0e16124d35fce6fc2588ae Mon Sep 17 00:00:00 2001 From: Orestis Date: Sun, 22 Oct 2017 00:15:15 +0300 Subject: [PATCH] Immediately hide the unlock indicator after ESC / C-u (#145) --- i3lock.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/i3lock.c b/i3lock.c index 945be9f..8538625 100644 --- a/i3lock.c +++ b/i3lock.c @@ -445,14 +445,9 @@ static void handle_key_press(xcb_key_press_event_t *event) { ksym == XKB_KEY_Escape) { DEBUG("C-u pressed\n"); clear_input(); - /* Hide the unlock indicator after a bit if the password buffer is - * empty. */ - if (unlock_indicator) { - START_TIMER(clear_indicator_timeout, 1.0, clear_indicator_cb); - unlock_state = STATE_BACKSPACE_ACTIVE; - redraw_screen(); - unlock_state = STATE_KEY_PRESSED; - } + /* Also hide the unlock indicator */ + if (unlock_indicator) + clear_indicator(); return; } break; -- 2.39.2