aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-12 16:05:52 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-12 16:05:52 +0200
commitc83c96f4ea9519741280a9963bd4bfed259b8c1d (patch)
tree312d18ca31f45ac32ef4b9ca6b92920b588521cc /monsterwm.c
parent8d19798d554d8b6628a4301d1810179b5a37dd90 (diff)
rename callback function to func
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c6
1 files 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; i<LENGTH(keys); i++)
- if (keysym == keys[i].keysym && CLEANMASK(keys[i].mod) == CLEANMASK(e->xkey.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() {