gm

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

commit 0516b9f75f0733b0121984144930a65f913fbccf
parent 72685611c95f9d664f71bcaa2057489a72c4b9a7
Author: z3bra <willy@mailoo.org>
Date:   Sat Nov 22 22:27:17 2014

fixed a bug where keypress wont work if no windows are shown

Diffstat:
 gm.c | 10 ----------
 1 file changed, 0 insertions(+), 10 deletions(-)

diff --git a/gm.c b/gm.c @@ -374,19 +374,9 @@ void evnt_keypress (xcb_generic_event_t *e) xcb_key_press_event_t *ev = (xcb_key_press_event_t *)e; struct window *np; - /* don't add the root window to a group */ - if (focus == scn->root) { - return; - } - ks = getkeysym(ev->detail); np = getnod(focus); - if (!np) { - warnx("evnt_keypress: cannot get focused window\n"); - return; - } - for (i=0; i<LEN(keys); i++) { if (keys[i].sym == ks && CLEAN(keys[i].mod) == CLEAN(ev->state)