summaryrefslogtreecommitdiffstats
path: root/swaylock
diff options
context:
space:
mode:
Diffstat (limited to 'swaylock')
-rw-r--r--swaylock/password.c1
-rw-r--r--swaylock/render.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/swaylock/password.c b/swaylock/password.c
index 2927a9a9..06c1180c 100644
--- a/swaylock/password.c
+++ b/swaylock/password.c
@@ -101,6 +101,7 @@ void swaylock_handle_key(struct swaylock_state *state,
101 case XKB_KEY_Return: 101 case XKB_KEY_Return:
102 state->auth_state = AUTH_STATE_VALIDATING; 102 state->auth_state = AUTH_STATE_VALIDATING;
103 render_frames(state); 103 render_frames(state);
104 wl_display_roundtrip(state->display);
104 if (attempt_password(&state->password)) { 105 if (attempt_password(&state->password)) {
105 exit(0); 106 exit(0);
106 } 107 }
diff --git a/swaylock/render.c b/swaylock/render.c
index 2469e60b..79609e96 100644
--- a/swaylock/render.c
+++ b/swaylock/render.c
@@ -134,7 +134,6 @@ void render_frame(struct swaylock_surface *surface) {
134 wl_surface_attach(surface->surface, surface->current_buffer->buffer, 0, 0); 134 wl_surface_attach(surface->surface, surface->current_buffer->buffer, 0, 0);
135 wl_surface_damage(surface->surface, 0, 0, buffer_width, buffer_height); 135 wl_surface_damage(surface->surface, 0, 0, buffer_width, buffer_height);
136 wl_surface_commit(surface->surface); 136 wl_surface_commit(surface->surface);
137 wl_display_roundtrip(state->display);
138} 137}
139 138
140void render_frames(struct swaylock_state *state) { 139void render_frames(struct swaylock_state *state) {