]> git.sur5r.net Git - i3/i3lock/blobdiff - unlock_indicator.c
Displaying locking message when grabbing the pointer/keyboard. (#88)
[i3/i3lock] / unlock_indicator.c
index 7e697b02da8f8c6d54cf0137ecf1701285f92a34..ee3f0cc407980773534cd3d45621ce9a38b1f4b8 100644 (file)
@@ -156,6 +156,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) {
          * (currently verifying, wrong password, or default) */
         switch (pam_state) {
             case STATE_PAM_VERIFY:
+            case STATE_PAM_LOCK:
                 cairo_set_source_rgba(ctx, 0, 114.0 / 255, 255.0 / 255, 0.75);
                 break;
             case STATE_PAM_WRONG:
@@ -169,6 +170,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) {
 
         switch (pam_state) {
             case STATE_PAM_VERIFY:
+            case STATE_PAM_LOCK:
                 cairo_set_source_rgb(ctx, 51.0 / 255, 0, 250.0 / 255);
                 break;
             case STATE_PAM_WRONG:
@@ -205,6 +207,9 @@ xcb_pixmap_t draw_image(uint32_t *resolution) {
             case STATE_PAM_VERIFY:
                 text = "verifying…";
                 break;
+            case STATE_PAM_LOCK:
+                text = "locking…";
+                break;
             case STATE_PAM_WRONG:
                 text = "wrong!";
                 break;