X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=xcb.c;h=d8423109df41075e206f548dbcf6f0cefc9a4d2a;hb=14667d8304382bb766ddbab5c58c2c81bfe16b6c;hp=e0b78111a06b3347371cd72ba88972bb462d64c4;hpb=d2130092cf588c02d7a0e74c0de85dc261b6823b;p=i3%2Fi3lock diff --git a/xcb.c b/xcb.c index e0b7811..d842310 100644 --- a/xcb.c +++ b/xcb.c @@ -23,7 +23,7 @@ #include "cursors.h" #include "unlock_indicator.h" -extern pam_state_t pam_state; +extern auth_state_t auth_state; xcb_connection_t *conn; xcb_screen_t *screen; @@ -238,7 +238,7 @@ void grab_pointer_and_keyboard(xcb_connection_t *conn, xcb_screen_t *screen, xcb /* After trying for 10000 times, i3lock will display an error message * for 2 sec prior to terminate. */ if (tries <= 0) { - pam_state = STATE_I3LOCK_LOCK_FAILED; + auth_state = STATE_I3LOCK_LOCK_FAILED; redraw_screen(); sleep(1); errx(EXIT_FAILURE, "Cannot grab pointer/keyboard");