summaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorAlexander Martin <10480820+afmartin@users.noreply.github.com>2019-08-03 19:07:50 -0600
committerBrian Ashworth <bosrsf04@gmail.com>2019-08-04 02:15:49 -0400
commit666ae950bc9c58b2676724e0d614f9018100fcca (patch)
tree47b6c2153e997c0c084387421188f8a42d121238 /render.c
parent080e8356b7c4a442985b7c7fcaddcbe2a950a3c0 (diff)
Adds option to show indicator even if idle
Diffstat (limited to 'render.c')
-rw-r--r--render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render.c b/render.c
index d8c2a5f..30d3f31 100644
--- a/render.c
+++ b/render.c
@@ -116,7 +116,8 @@ void render_frame(struct swaylock_surface *surface) {
float type_indicator_border_thickness =
TYPE_INDICATOR_BORDER_THICKNESS * surface->scale;
- if (state->args.show_indicator && state->auth_state != AUTH_STATE_IDLE) {
+ if (state->args.show_indicator && (state->auth_state != AUTH_STATE_IDLE ||
+ state->args.indicator_idle_visible)) {
// Draw circle
cairo_set_line_width(cairo, arc_thickness);
cairo_arc(cairo, buffer_width / 2, buffer_diameter / 2, arc_radius,