summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authoroga <oga>2009-01-23 18:58:40 +0000
committeroga <oga>2009-01-23 18:58:40 +0000
commit779177a53d2d0c9a02905a43f250f4ae08cb1dff (patch)
tree99fae4ece379034da322706e728ab238445e54c8 /xevents.c
parent87964e5c7e4cfa96f34187a993d10cc5ec37e881 (diff)
downloadcwm-779177a53d2d0c9a02905a43f250f4ae08cb1dff.tar.gz
cwm-779177a53d2d0c9a02905a43f250f4ae08cb1dff.tar.xz
cwm-779177a53d2d0c9a02905a43f250f4ae08cb1dff.zip
Move the keybinding argument to a union to prevent warnings where
sizeof(int) != sizeof(void *). This has been annoying me for ages.

ok okan@, todd@
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c
index 788086e..0b063ae 100644
--- a/xevents.c
+++ b/xevents.c
@@ -294,7 +294,7 @@ xev_handle_keypress(struct xevent *xev, XEvent *ee)
 		if (kb->flags & KBFLAG_NEEDCLIENT)
 			goto out;
 
-	(*kb->callback)(cc, kb->argument);
+	(*kb->callback)(cc, &kb->argument);
 
 out:
 	xev_register(xev);