diff options
| author | Simon Ser <contact@emersion.fr> | 2021-02-10 17:45:42 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2021-02-17 16:50:38 +0100 |
| commit | 9d3da72a39771bb4d2241ea66b620d97c22298da (patch) | |
| tree | ec4c966adc9fa8a3e80ea8334091445d24c9ac30 /render.c | |
| parent | 05325b1197f9921f7d03096173589e5c06411ebb (diff) | |
Use wl_surface.damage_buffer
We incorrectly used the buffer size instead of the surface size.
Let's not bother and just damage the maximum region.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -64,7 +64,7 @@ void render_frame_background(struct swaylock_surface *surface) { wl_surface_set_buffer_scale(surface->surface, surface->scale); wl_surface_attach(surface->surface, surface->current_buffer->buffer, 0, 0); - wl_surface_damage(surface->surface, 0, 0, surface->width, surface->height); + wl_surface_damage_buffer(surface->surface, 0, 0, INT32_MAX, INT32_MAX); wl_surface_commit(surface->surface); } @@ -315,7 +315,7 @@ void render_frame(struct swaylock_surface *surface) { wl_surface_set_buffer_scale(surface->child, surface->scale); wl_surface_attach(surface->child, surface->current_buffer->buffer, 0, 0); - wl_surface_damage(surface->child, 0, 0, surface->current_buffer->width, surface->current_buffer->height); + wl_surface_damage_buffer(surface->child, 0, 0, INT32_MAX, INT32_MAX); wl_surface_commit(surface->child); wl_surface_commit(surface->surface); |
