aboutsummaryrefslogtreecommitdiff
path: root/src/render.c
diff options
context:
space:
mode:
authorJames Magahern <james@magahern.com>2019-02-09 15:48:14 -0800
committerJames Magahern <james@magahern.com>2019-02-09 15:48:14 -0800
commit8dc7eb8b2fa9b6614cff27173cb556b4410ed6e2 (patch)
treebe2bd9d5d0f3f42f405bc403a9f50436899cf0c7 /src/render.c
parentNeed to make sure to mark pw field as dirty when updating via xsl input too (diff)
Clean up the cursor animation a bit
Now the cursor won't start fading again until a short delay after the last keypress
Diffstat (limited to 'src/render.c')
-rw-r--r--src/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c
index 4887628..f48f191 100644
--- a/src/render.c
+++ b/src/render.c
@@ -378,8 +378,8 @@ void draw_password_field(saver_state_t *state)
// Draw cursor
const double x_offset = (num_asterisks * asterisk_width);
cairo_set_source_rgba(cr, 1.0, 1.0, 1.0, MIN(state->password_opacity, state->cursor_opacity));
+ draw_background(state, field_x + x_offset, field_y, state->canvas_width, cursor_height);
if (!state->is_processing) {
- draw_background(state, field_x + x_offset, field_y, state->canvas_width, cursor_height);
cairo_rectangle(cr, field_x + x_offset, field_y, cursor_width, cursor_height);
} else {
// Fill asterisks