sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 5d5b21dcce0fa6416a7639a6cc0e3edf4311b0cf
parent dee032d0a0ecd958c902b88302dc59703d703c7f
Author: Alexander Orzechowski <orzechowski.alexander@gmail.com>
Date:   Mon, 27 Mar 2023 05:54:13 +0200

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.

Diffstat:
Mswaybar/render.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/swaybar/render.c b/swaybar/render.c @@ -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);