summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-03 22:00:29 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-04 18:47:49 -0400
commit2c6703cd41a1cd7ebc58893ebd766ae8f9d132bd (patch)
tree669401b8705503582c094ba79a1e7bf53433b034
parent61b2e71c0cbf228804cd029c49a37b6e0101a03f (diff)
Move extra roundtrip into password.c
-rw-r--r--password.c1
-rw-r--r--render.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/password.c b/password.c
index 2927a9a..06c1180 100644
--- a/password.c
+++ b/password.c
@@ -101,6 +101,7 @@ void swaylock_handle_key(struct swaylock_state *state,
case XKB_KEY_Return:
state->auth_state = AUTH_STATE_VALIDATING;
render_frames(state);
+ wl_display_roundtrip(state->display);
if (attempt_password(&state->password)) {
exit(0);
}
diff --git a/render.c b/render.c
index 2469e60..79609e9 100644
--- a/render.c
+++ b/render.c
@@ -134,7 +134,6 @@ void render_frame(struct swaylock_surface *surface) {
wl_surface_attach(surface->surface, surface->current_buffer->buffer, 0, 0);
wl_surface_damage(surface->surface, 0, 0, buffer_width, buffer_height);
wl_surface_commit(surface->surface);
- wl_display_roundtrip(state->display);
}
void render_frames(struct swaylock_state *state) {