mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 15:36:29 +01: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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue