From 5d5b21dcce0fa6416a7639a6cc0e3edf4311b0cf Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 27 Mar 2023 05:54:13 +0200 Subject: 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. --- swaybar/render.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'swaybar') 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); -- cgit v1.2.3