gm

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

commit c63114171af7d3a2a0e71767879deab87ba21510
parent 0516b9f75f0733b0121984144930a65f913fbccf
Author: z3bra <willy@mailoo.org>
Date:   Sat Nov 22 23:25:28 2014

Removed and fix some logging

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

diff --git a/gm.c b/gm.c @@ -153,8 +153,6 @@ struct window *getnod(xcb_window_t w) } } - warnx("getnod: 0x%08x not found\n", w); - return NULL; } @@ -304,7 +302,7 @@ void mapgrp(uint8_t g) for (np = groups[g]; np; np = np->next) { xcb_map_window(con, np->id); - logx("map: %d - %08x\n", g, np->id); + logx("map: %d - 0x%08x\n", g, np->id); } return; @@ -323,7 +321,7 @@ void hidgrp(uint8_t g) for (np = groups[g]; np; np = np->next) { if (np->id != scn->root) { xcb_unmap_window(con, np->id); - logx("hid: %d - %08x\n", g, np->id); + logx("hid: %d - 0x%08x\n", g, np->id); } } @@ -476,7 +474,7 @@ void grabkeys() kc = getkeycode(keys[i].sym); for (j=0; kc[j] != XCB_NO_SYMBOL; j++) { - xcb_grab_key(con, 1, scn->root, keys[i].mod , kc[j], + xcb_grab_key(con, 1, scn->root, keys[i].mod, kc[j], XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC); }