aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2023-03-27 05:54:13 +0200
committerKenny Levinsen <kl@kl.wtf>2023-04-02 01:58:02 +0200
commit5d5b21dcce0fa6416a7639a6cc0e3edf4311b0cf (patch)
tree9045d007d1fed785566cfffcb43754eab582c44f /swaybar
parentdee032d0a0ecd958c902b88302dc59703d703c7f (diff)
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 (limited to 'swaybar')
-rw-r--r--swaybar/render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/swaybar/render.c b/swaybar/render.c
index 6a983e97..a296112a 100644
--- 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);