aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan2016-10-06 14:41:19 +0000
committerokan2016-10-06 14:41:19 +0000
commit9d358af1dd11a75cf4778e096df8f52cb1ca690b (patch)
tree9e40148cf90de010622f87a77f515231ffaf5a21 /mousefunc.c
parent97f575bc42f2f8f9458adf55d1fc29e8bd021c83 (diff)
downloadcwm-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 '')
-rw-r--r--mousefunc.c6
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;