diff options
author | okan | 2016-10-06 14:41:19 +0000 |
---|---|---|
committer | okan | 2016-10-06 14:41:19 +0000 |
commit | 9d358af1dd11a75cf4778e096df8f52cb1ca690b (patch) | |
tree | 9e40148cf90de010622f87a77f515231ffaf5a21 /mousefunc.c | |
parent | 97f575bc42f2f8f9458adf55d1fc29e8bd021c83 (diff) | |
download | cwm-9d358af1dd11a75cf4778e096df8f52cb1ca690b.tar.gz |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c index bc451e3..a565be4 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: mousefunc.c,v 1.112 2016/10/03 13:52:18 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.113 2016/10/06 14:41:19 okan Exp $ */ #include <sys/types.h> @@ -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; |