mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
swaylock: implement a proper render loop
This commit is contained in:
parent
e4c54b04ce
commit
cc10c7af65
4 changed files with 108 additions and 57 deletions
|
|
@ -23,6 +23,10 @@ void render_frame(struct swaylock_surface *surface) {
|
|||
|
||||
surface->current_buffer = get_next_buffer(state->shm,
|
||||
surface->buffers, buffer_width, buffer_height);
|
||||
if (surface->current_buffer == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
cairo_t *cairo = surface->current_buffer->cairo;
|
||||
cairo_identity_matrix(cairo);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue