aboutsummaryrefslogtreecommitdiff
path: root/src/picom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/picom.c')
-rw-r--r--src/picom.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/picom.c b/src/picom.c
index 6aad167..a3ed614 100644
--- a/src/picom.c
+++ b/src/picom.c
@@ -846,7 +846,14 @@ paint_preprocess(session_t *ps, bool *fade_running, bool *animation_running) {
// (uint)w->widthb, (uint)w->heightb);
// }
- win_update_bounding_shape(ps, w);
+ if (ps->o.support_for_wm == WM_SUPPORT_LEGACY) {
+ pixman_region32_clear(&w->bounding_shape);
+ pixman_region32_fini(&w->bounding_shape);
+ pixman_region32_init_rect(&w->bounding_shape, 0, 0,
+ (uint)w->widthb, (uint)w->heightb);
+ } else {
+ win_update_bounding_shape(ps, w);
+ }
if (w->state != WSTATE_DESTROYING)
win_clear_flags(w, WIN_FLAGS_PIXMAP_STALE);