Browse Source

Immediately hide the unlock indicator after ESC / C-u (#145)

master
Orestis 7 years ago
committed by Michael Stapelberg
parent
commit
8eecef62fb
  1. 11
      i3lock.c

11
i3lock.c

@ -445,14 +445,9 @@ static void handle_key_press(xcb_key_press_event_t *event) {
ksym == XKB_KEY_Escape) { ksym == XKB_KEY_Escape) {
DEBUG("C-u pressed\n"); DEBUG("C-u pressed\n");
clear_input(); clear_input();
/* Hide the unlock indicator after a bit if the password buffer is /* Also hide the unlock indicator */
* empty. */ if (unlock_indicator)
if (unlock_indicator) { clear_indicator();
START_TIMER(clear_indicator_timeout, 1.0, clear_indicator_cb);
unlock_state = STATE_BACKSPACE_ACTIVE;
redraw_screen();
unlock_state = STATE_KEY_PRESSED;
}
return; return;
} }
break; break;

Loading…
Cancel
Save