diff options
| author | allusive-dev <[email protected]> | 2023-11-08 13:04:53 +1100 |
|---|---|---|
| committer | allusive-dev <[email protected]> | 2023-11-08 13:04:53 +1100 |
| commit | c5e1978de02698f8eff33c0316ac1a0c4ed1581d (patch) | |
| tree | a70c1bdc06e77196d1e7e2c3c3fbd3b28c230596 /src/picom.c | |
| parent | tweak (diff) | |
| download | compfy-c5e1978de02698f8eff33c0316ac1a0c4ed1581d.tar.xz compfy-c5e1978de02698f8eff33c0316ac1a0c4ed1581d.zip | |
backtrack
Diffstat (limited to 'src/picom.c')
| -rw-r--r-- | src/picom.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/picom.c b/src/picom.c index 7c350b9..c8dea67 100644 --- a/src/picom.c +++ b/src/picom.c @@ -17,7 +17,6 @@ #include <fcntl.h> #include <inttypes.h> #include <stdio.h> -#include <stdlib.h> #include <string.h> #include <unistd.h> #include <xcb/composite.h> @@ -63,8 +62,6 @@ #include "options.h" #include "uthash_extra.h" -#include "wm_check.c" - /// Get session_t pointer from a pointer to a member of session_t #define session_ptr(ptr, member) \ ({ \ @@ -838,11 +835,9 @@ paint_preprocess(session_t *ps, bool *fade_running, bool *animation_running) { if (size_changed) { win_on_win_size_change(ps, w); - const char *wm = checkWindowManager(); - - if (strcmp(wm, "awesome") == 0) { + if (ps->o.support_for_wm == WM_SUPPORT_AWESOME) { win_update_bounding_shape(ps, w); - } else if (strcmp(wm, "herb") == 0) { + } else if (ps->o.support_for_wm == WM_SUPPORT_HERB) { win_update_bounding_shape(ps, w); } else { pixman_region32_clear(&w->bounding_shape); @@ -851,17 +846,6 @@ paint_preprocess(session_t *ps, bool *fade_running, bool *animation_running) { (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); - // } - if (w->state != WSTATE_DESTROYING) win_clear_flags(w, WIN_FLAGS_PIXMAP_STALE); |