diff options
author | eplanet <emeric.planet@gmail.com> | 2016-09-28 03:39:52 +0200 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2016-09-27 18:39:52 -0700 |
commit | 1c97a8484723b7db6c96c3b7bfa4c86c26f47b5a (patch) | |
tree | 0b25192dc3cd1d9fb0151d58174755292cd891f5 /unlock_indicator.h | |
parent | fd2215b0f08991f0f710533b122a182438ff2237 (diff) |
Displaying locking message when grabbing the pointer/keyboard. (#88)
Display "locking…" message when grabbing the pointer/keyboard,
after at least 250 ms of unfruitful attempts. If grabbing
eventually fails, application will not fork and return 1.
Diffstat (limited to 'unlock_indicator.h')
-rw-r--r-- | unlock_indicator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unlock_indicator.h b/unlock_indicator.h index d08fd0c..e679564 100644 --- a/unlock_indicator.h +++ b/unlock_indicator.h @@ -13,7 +13,8 @@ typedef enum { typedef enum { STATE_PAM_IDLE = 0, /* no PAM interaction at the moment */ STATE_PAM_VERIFY = 1, /* currently verifying the password via PAM */ - STATE_PAM_WRONG = 2 /* the password was wrong */ + STATE_PAM_LOCK = 2, /* currently locking the screen */ + STATE_PAM_WRONG = 3 /* the password was wrong */ } pam_state_t; xcb_pixmap_t draw_image(uint32_t* resolution); |