gm

(orphaned) group manager using libcxb
git clone git://z3bra.org/gm
Log | Files | Refs | README | LICENSE

commit 6c7840ce29a794b4b6f954ae4bf05567b38bfdeb
parent 2d56e9bc0de4c53ef14014db40b5acd4bacf5184
Author: z3bra <willy@mailoo.org>
Date:   Mon Nov 17 13:20:37 2014

Hide windows if sent to an empty/hidden group

Diffstat:
 gm.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gm.c b/gm.c @@ -216,10 +216,14 @@ void changegroup(struct window *np, uint8_t g) return; } + /* unmap window if sent to an empty/hidden group */ + if (g > 0 && (!groups[g] || !ismapped(groups[g]->id))) { + xcb_unmap_window(con, np->id); + xcb_flush(con); + } + delgroup(np); addgroup(np, g); - - mapgrp(g); } /* add a window to a group */