mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-24 21:05:40 +02:00
bar/wayland: update_size: release old buffer when reloading buffers
This commit is contained in:
parent
dd74b7f747
commit
6bf077240c
1 changed files with 2 additions and 0 deletions
|
@ -822,6 +822,8 @@ update_size(struct wayland_backend *backend)
|
|||
bar->width = backend->width;
|
||||
|
||||
/* Reload buffers */
|
||||
if (backend->next_buffer != NULL)
|
||||
backend->next_buffer->busy = false;
|
||||
backend->next_buffer = get_buffer(backend);
|
||||
assert(backend->next_buffer != NULL && backend->next_buffer->busy);
|
||||
bar->pix = backend->next_buffer->pix;
|
||||
|
|
Loading…
Add table
Reference in a new issue