]> git.sur5r.net Git - i3/i3lock/blobdiff - i3lock.c
display error when backspace is pressed without any input (#172)
[i3/i3lock] / i3lock.c
index d6f2151671811dcf7641178dd0ec552abb983878..f9513f5a63b510c56b922c1a11044a89851cdae5 100644 (file)
--- a/i3lock.c
+++ b/i3lock.c
@@ -472,8 +472,12 @@ static void handle_key_press(xcb_key_press_event_t *event) {
             if (ksym == XKB_KEY_h && !ctrl)
                 break;
 
-            if (input_position == 0)
+            if (input_position == 0) {
+                START_TIMER(clear_indicator_timeout, 1.0, clear_indicator_cb);
+                unlock_state = STATE_NOTHING_TO_DELETE;
+                redraw_screen();
                 return;
+            }
 
             /* decrement input_position to point to the previous glyph */
             u8_dec(password, &input_position);