Move extra roundtrip into password.c
This commit is contained in:
parent
61b2e71c0c
commit
2c6703cd41
@ -101,6 +101,7 @@ void swaylock_handle_key(struct swaylock_state *state,
|
|||||||
case XKB_KEY_Return:
|
case XKB_KEY_Return:
|
||||||
state->auth_state = AUTH_STATE_VALIDATING;
|
state->auth_state = AUTH_STATE_VALIDATING;
|
||||||
render_frames(state);
|
render_frames(state);
|
||||||
|
wl_display_roundtrip(state->display);
|
||||||
if (attempt_password(&state->password)) {
|
if (attempt_password(&state->password)) {
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
1
render.c
1
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_attach(surface->surface, surface->current_buffer->buffer, 0, 0);
|
||||||
wl_surface_damage(surface->surface, 0, 0, buffer_width, buffer_height);
|
wl_surface_damage(surface->surface, 0, 0, buffer_width, buffer_height);
|
||||||
wl_surface_commit(surface->surface);
|
wl_surface_commit(surface->surface);
|
||||||
wl_display_roundtrip(state->display);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void render_frames(struct swaylock_state *state) {
|
void render_frames(struct swaylock_state *state) {
|
||||||
|
Loading…
Reference in New Issue
Block a user