glazier

the original window manipulator
Log | Files | Refs | Submodules | README | LICENSE

commit 52b82afdb8356bb873776f9eabfa4671b16a2184
parent d151f75ae2a5c9a31e94520a469b7342800183f8
Author: Willy Goiffon <dev@z3bra.org>
Date:   Sat, 26 Oct 2019 10:43:53 +0200

Change logging to list all adopted children

Diffstat:
glazier.c | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/glazier.c b/glazier.c @@ -119,22 +119,23 @@ adopt(xcb_window_t wid) static int takeover() { - int i, c, n; + int i, n; xcb_window_t *orphans; n = wm_get_windows(scrn->root, &orphans); - for (i = 0, c = 0; i < n; i++) { + for (i = 0; i < n; i++) { if (wm_is_ignored(orphans[i])) continue; + if (verbose) + fprintf(stderr, "Adoptint 0x%08x\n", orphans[i]); + adopt(orphans[i]); - if (wm_is_mapped(orphans[i]) + if (wm_is_mapped(orphans[i])) wm_set_border(border, border_color, wid); } - if (verbose) - fprintf(stderr, "Adopted %d windows\n", c); return n; }