aboutsummaryrefslogtreecommitdiff
path: root/src/picom.c
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-11-10 19:09:40 +1100
committerallusive-dev <[email protected]>2023-11-10 19:09:40 +1100
commit39c7c2a863afb68b9b764c3d0568b8d6acbc5480 (patch)
treecf3657182d5fb5dcdcc10af70117a5c9f73e264e /src/picom.c
parentSwitching some per wm patches to global (diff)
downloadcompfy-1.4.3.tar.xz
compfy-1.4.3.zip
Added 'legacy' option for wm-support for bug testing1.4.3
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);