aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Orzechowski <orzechowski.alexander@gmail.com>2023-03-27 05:54:13 +0200
committerLibravatar Kenny Levinsen <kl@kl.wtf>2023-04-02 01:58:02 +0200
commit5d5b21dcce0fa6416a7639a6cc0e3edf4311b0cf (patch)
tree9045d007d1fed785566cfffcb43754eab582c44f
parentipc: add LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM entry (diff)
downloadsway-5d5b21dcce0fa6416a7639a6cc0e3edf4311b0cf.tar.gz
sway-5d5b21dcce0fa6416a7639a6cc0e3edf4311b0cf.tar.zst
sway-5d5b21dcce0fa6416a7639a6cc0e3edf4311b0cf.zip
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.
-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) {
841 wl_region_add(region, 0, 0, INT32_MAX, INT32_MAX); 841 wl_region_add(region, 0, 0, INT32_MAX, INT32_MAX);
842 wl_surface_set_opaque_region(output->surface, region); 842 wl_surface_set_opaque_region(output->surface, region);
843 wl_region_destroy(region); 843 wl_region_destroy(region);
844 } else {
845 wl_surface_set_opaque_region(output->surface, NULL);
844 } 846 }
845 847
846 struct wl_callback *frame_callback = wl_surface_frame(output->surface); 848 struct wl_callback *frame_callback = wl_surface_frame(output->surface);