aboutsummaryrefslogtreecommitdiff
path: root/src/picom.c
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-11-03 09:59:00 +1100
committerallusive-dev <[email protected]>2023-11-03 09:59:00 +1100
commitb072635252b2d1d1ebac50d38bfcd8f0c6cdc36e (patch)
tree2d72dc27730f3e8407f3a83e95631c20f1279584 /src/picom.c
parentMerge pull request #22 from IogaMaster/flake (diff)
downloadcompfy-b072635252b2d1d1ebac50d38bfcd8f0c6cdc36e.tar.xz
compfy-b072635252b2d1d1ebac50d38bfcd8f0c6cdc36e.zip
Added wm-support and re-arranged patches. This update will also make changes to the nixos package
Diffstat (limited to 'src/picom.c')
-rw-r--r--src/picom.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/picom.c b/src/picom.c
index 727896f..46f74cd 100644
--- a/src/picom.c
+++ b/src/picom.c
@@ -835,11 +835,14 @@ paint_preprocess(session_t *ps, bool *fade_running, bool *animation_running) {
if (size_changed) {
win_on_win_size_change(ps, w);
- // 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);
- win_update_bounding_shape(ps, w);
+ if (ps->o.support_for_wm == WM_SUPPORT_AWESOME) {
+ win_update_bounding_shape(ps, w);
+ } else {
+ 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);
+ }
if (w->state != WSTATE_DESTROYING)
win_clear_flags(w, WIN_FLAGS_PIXMAP_STALE);