diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-03 22:00:29 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-04 18:47:49 -0400 |
commit | 0138f79b4aae563e1223737856ab44c8634c76b0 (patch) | |
tree | 238b2e12cf0e3cbbbeec6e56ea3c37c58974b1f5 /swaylock | |
parent | d2d050d59cf19c583b100e6e3637ed9a06a8863f (diff) |
Move extra roundtrip into password.c
Diffstat (limited to 'swaylock')
-rw-r--r-- | swaylock/password.c | 1 | ||||
-rw-r--r-- | swaylock/render.c | 1 |
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, 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/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) { 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) { |