swaybar: Set opaque region properly

The opaque region is set incorrectly if updated on-the-fly if switching from an opaque to a non opaque background.
This commit is contained in:
Alexander Orzechowski 2023-03-27 05:54:13 +02:00 committed by Kenny Levinsen
parent dee032d0a0
commit 5d5b21dcce
1 changed files with 2 additions and 0 deletions

View File

@ -841,6 +841,8 @@ void render_frame(struct swaybar_output *output) {
wl_region_add(region, 0, 0, INT32_MAX, INT32_MAX);
wl_surface_set_opaque_region(output->surface, region);
wl_region_destroy(region);
} else {
wl_surface_set_opaque_region(output->surface, NULL);
}
struct wl_callback *frame_callback = wl_surface_frame(output->surface);