From c83c96f4ea9519741280a9963bd4bfed259b8c1d Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Thu, 12 Jan 2012 16:05:52 +0200 Subject: rename callback function to func --- monsterwm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monsterwm.c b/monsterwm.c index 064e538..896e560 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -29,7 +29,7 @@ typedef union { typedef struct { unsigned int mod; KeySym keysym; - void (*function)(const Arg *); + void (*func)(const Arg *); const Arg arg; } key; @@ -309,8 +309,8 @@ void keypress(XEvent *e) { KeySym keysym; keysym = XKeycodeToKeysym(dis, (KeyCode)e->xkey.keycode, 0); for (unsigned int i=0; ixkey.state) && keys[i].function) - keys[i].function(&keys[i].arg); + if (keysym == keys[i].keysym && CLEANMASK(keys[i].mod) == CLEANMASK(e->xkey.state) && keys[i].func) + keys[i].func(&keys[i].arg); } void killclient() { -- cgit v1.3.1