diff options
author | okan <okan> | 2013-05-22 16:54:09 +0000 |
---|---|---|
committer | okan <okan> | 2013-05-22 16:54:09 +0000 |
commit | d1eadee9226043af0e2a7043a958e6c4d8e405bc (patch) | |
tree | 546aa3fc94128d3591cafe0306c2d91069e81f08 /conf.c | |
parent | 532f132194751bd2f530a13c243a30c76f66bfaa (diff) | |
download | cwm-d1eadee9226043af0e2a7043a958e6c4d8e405bc.tar.gz cwm-d1eadee9226043af0e2a7043a958e6c4d8e405bc.tar.xz cwm-d1eadee9226043af0e2a7043a958e6c4d8e405bc.zip |
get rid of long standing XXX: now that we configure screens based on
config options, add the keybinding GrabKey calls here
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/conf.c b/conf.c index 0afc11d..b3c5210 100644 --- a/conf.c +++ b/conf.c @@ -98,8 +98,9 @@ static char *color_binds[CWM_COLOR_MAX] = { void conf_screen(struct screen_ctx *sc) { - int i; - XftColor xc; + struct keybinding *kb; + int i; + XftColor xc; sc->gap = Conf.gap; @@ -139,6 +140,9 @@ conf_screen(struct screen_ctx *sc) sc->visual, sc->colormap); if (sc->xftdraw == NULL) errx(1, "XftDrawCreate"); + + TAILQ_FOREACH(kb, &Conf.keybindingq, entry) + xu_key_grab(sc->rootwin, kb->modmask, kb->keysym); } static struct { |