summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2016-10-06 14:41:19 +0000
committerokan <okan>2016-10-06 14:41:19 +0000
commit987ee736b92ec889391283624d84cc6cc87c8c1a (patch)
tree50edaea87e5eb23d2ccf90fa3a5c3bb558121244 /mousefunc.c
parent66f5360fd48401a1d8ac204e36567597a3974164 (diff)
downloadcwm-987ee736b92ec889391283624d84cc6cc87c8c1a.tar.gz
cwm-987ee736b92ec889391283624d84cc6cc87c8c1a.tar.xz
cwm-987ee736b92ec889391283624d84cc6cc87c8c1a.zip
Add an argument to the callbacks to pass the xevent context, button or
key press. This allows to remove a few hacks to duplicate functions only
for behaviour changes; now differing behaviours are pushed down to the
callback. Also will allow for previously unavailable actions to be bind-able
down the road.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 2bf19db..27b1d65 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -33,7 +33,7 @@
 #include "calmwm.h"
 
 void
-mousefunc_client_resize(struct client_ctx *cc, union arg *arg)
+mousefunc_client_resize(struct client_ctx *cc, union arg *arg, int xev)
 {
 	XEvent			 ev;
 	Time			 ltime = 0;
@@ -88,7 +88,7 @@ mousefunc_client_resize(struct client_ctx *cc, union arg *arg)
 }
 
 void
-mousefunc_client_move(struct client_ctx *cc, union arg *arg)
+mousefunc_client_move(struct client_ctx *cc, union arg *arg, int xev)
 {
 	XEvent			 ev;
 	Time			 ltime = 0;