diff options
author | arg@mig29 <unknown> | 2006-11-27 17:49:58 +0100 |
---|---|---|
committer | arg@mig29 <unknown> | 2006-11-27 17:49:58 +0100 |
commit | 19dcbc5717bdcef4bcb5be6966be7d86f88152d6 (patch) | |
tree | d54d971af96abc195ebd7c1669e4ae2e73a70788 /event.c | |
parent | d2a4952956aa21a48ac40d7f650036682cb9d97d (diff) | |
download | dwm-19dcbc5717bdcef4bcb5be6966be7d86f88152d6.tar.gz dwm-19dcbc5717bdcef4bcb5be6966be7d86f88152d6.tar.bz2 dwm-19dcbc5717bdcef4bcb5be6966be7d86f88152d6.zip |
returning to old Key struct
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -11,7 +11,7 @@ typedef struct { unsigned long mod; KeySym keysym; - void (*func[NFUNCS])(Arg *arg); + void (*func)(Arg *arg); Arg arg; } Key; @@ -245,7 +245,7 @@ expose(XEvent *e) { static void keypress(XEvent *e) { static unsigned int len = sizeof key / sizeof key[0]; - unsigned int i, j; + unsigned int i; KeySym keysym; XKeyEvent *ev = &e->xkey; @@ -254,9 +254,8 @@ keypress(XEvent *e) { if(keysym == key[i].keysym && CLEANMASK(key[i].mod) == CLEANMASK(ev->state)) { - for(j = 0; j < NFUNCS; j++) - if(key[i].func[j]) - key[i].func[j](&key[i].arg); + if(key[i].func) + key[i].func(&key[i].arg); return; } } |