diff options
author | 2018-05-27 08:58:35 -0400 | |
---|---|---|
committer | 2018-05-27 08:58:35 -0400 | |
commit | 067eb83f11cb25138b112a68e2eeee263cf0128e (patch) | |
tree | 5e1ebce0a9a71954679ade0676e3b7db01b018f2 /swaylock/render.c | |
parent | Merge pull request #2049 from RyanDwyer/criteria-shell (diff) | |
parent | swaylock: implement a proper render loop (diff) | |
download | sway-067eb83f11cb25138b112a68e2eeee263cf0128e.tar.gz sway-067eb83f11cb25138b112a68e2eeee263cf0128e.tar.zst sway-067eb83f11cb25138b112a68e2eeee263cf0128e.zip |
Merge pull request #2042 from emersion/swaylock-render-loop
swaylock: implement a proper render loop
Diffstat (limited to 'swaylock/render.c')
-rw-r--r-- | swaylock/render.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/swaylock/render.c b/swaylock/render.c index 05236dea..2032ddcf 100644 --- a/swaylock/render.c +++ b/swaylock/render.c | |||
@@ -23,6 +23,10 @@ void render_frame(struct swaylock_surface *surface) { | |||
23 | 23 | ||
24 | surface->current_buffer = get_next_buffer(state->shm, | 24 | surface->current_buffer = get_next_buffer(state->shm, |
25 | surface->buffers, buffer_width, buffer_height); | 25 | surface->buffers, buffer_width, buffer_height); |
26 | if (surface->current_buffer == NULL) { | ||
27 | return; | ||
28 | } | ||
29 | |||
26 | cairo_t *cairo = surface->current_buffer->cairo; | 30 | cairo_t *cairo = surface->current_buffer->cairo; |
27 | cairo_identity_matrix(cairo); | 31 | cairo_identity_matrix(cairo); |
28 | 32 | ||