summaryrefslogtreecommitdiffstats
path: root/swaylock/render.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-05-25 19:34:36 +0100
committerLibravatar emersion <contact@emersion.fr>2018-05-27 13:39:38 +0100
commitcc10c7af6528f6006e4fccbbdc2156b957cdd5c9 (patch)
tree5e1ebce0a9a71954679ade0676e3b7db01b018f2 /swaylock/render.c
parentMerge pull request #2049 from RyanDwyer/criteria-shell (diff)
downloadsway-cc10c7af6528f6006e4fccbbdc2156b957cdd5c9.tar.gz
sway-cc10c7af6528f6006e4fccbbdc2156b957cdd5c9.tar.zst
sway-cc10c7af6528f6006e4fccbbdc2156b957cdd5c9.zip
swaylock: implement a proper render loop
Diffstat (limited to 'swaylock/render.c')
-rw-r--r--swaylock/render.c4
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