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.
master
Alexander Orzechowski 2 years ago committed by Kenny Levinsen
parent dee032d0a0
commit 5d5b21dcce

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

Loading…
Cancel
Save