aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-11-10 19:04:25 +1100
committerallusive-dev <[email protected]>2023-11-10 19:04:25 +1100
commit0cb1c6a7013b50562383e0d4575a6709c3534214 (patch)
treec9a517206e12c4f8635bec3a27c13f34d3126a11 /src
parentRemoved WM warning message (diff)
downloadcompfy-0cb1c6a7013b50562383e0d4575a6709c3534214.tar.xz
compfy-0cb1c6a7013b50562383e0d4575a6709c3534214.zip
Switching some per wm patches to global
Diffstat (limited to 'src')
-rw-r--r--src/picom.c22
-rw-r--r--src/win.c2
2 files changed, 13 insertions, 11 deletions
diff --git a/src/picom.c b/src/picom.c
index c8dea67..6aad167 100644
--- a/src/picom.c
+++ b/src/picom.c
@@ -835,16 +835,18 @@ paint_preprocess(session_t *ps, bool *fade_running, bool *animation_running) {
if (size_changed) {
win_on_win_size_change(ps, w);
- if (ps->o.support_for_wm == WM_SUPPORT_AWESOME) {
- win_update_bounding_shape(ps, w);
- } else if (ps->o.support_for_wm == WM_SUPPORT_HERB) {
- 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 (ps->o.support_for_wm == WM_SUPPORT_AWESOME) {
+ // win_update_bounding_shape(ps, w);
+ // } else if (ps->o.support_for_wm == WM_SUPPORT_HERB) {
+ // 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);
+ // }
+
+ win_update_bounding_shape(ps, w);
if (w->state != WSTATE_DESTROYING)
win_clear_flags(w, WIN_FLAGS_PIXMAP_STALE);
diff --git a/src/win.c b/src/win.c
index 29b3fe0..fdb2d32 100644
--- a/src/win.c
+++ b/src/win.c
@@ -3191,7 +3191,7 @@ win_is_fullscreen_xcb(xcb_connection_t *c, const struct atom *a, const xcb_windo
void win_set_flags(struct managed_win *w, uint64_t flags) {
log_debug("Set flags %" PRIu64 " to window %#010x (%s)", flags, w->base.id, w->name);
if (unlikely(w->state == WSTATE_DESTROYING)) {
- log_error("Flags set on a destroyed window %#010x (%s)", w->base.id, w->name);
+ // log_error("Flags set on a destroyed window %#010x (%s)", w->base.id, w->name);
return;
}