mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
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:
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_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);
|
||||
|
|
Loading…
Reference in a new issue