aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan2017-05-09 13:40:18 +0000
committerokan2017-05-09 13:40:18 +0000
commitc0236e8f1db054489bfaf7f9b517a59a8fbafd70 (patch)
treef261a3d4ba774136904d337d118587b62611d661 /mousefunc.c
parentc44f7f8975b29c13365cb80c54a9b7f26fee3943 (diff)
downloadcwm-c0236e8f1db054489bfaf7f9b517a59a8fbafd70.tar.gz
Alter callbacks to take a struct instead of a growing number of arguments;
greatly simplifies upcoming work.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 48d97e4..d771baa 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.116 2017/05/01 12:54:55 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.117 2017/05/09 13:40:18 okan Exp $
*/
#include <sys/types.h>
@@ -33,7 +33,7 @@
#include "calmwm.h"
void
-mousefunc_client_resize(void *ctx, union arg *arg, enum xev xev)
+mousefunc_client_resize(void *ctx, struct cargs *cargs)
{
struct client_ctx *cc = ctx;
XEvent ev;
@@ -87,7 +87,7 @@ mousefunc_client_resize(void *ctx, union arg *arg, enum xev xev)
}
void
-mousefunc_client_move(void *ctx, union arg *arg, enum xev xev)
+mousefunc_client_move(void *ctx, struct cargs *cargs)
{
struct client_ctx *cc = ctx;
XEvent ev;