aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--monsterwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monsterwm.c b/monsterwm.c
index ab74b1a..8a71e8d 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -384,7 +384,7 @@ void maprequest(XEvent *e) {
}
void mousemove(const Arg *arg) {
- if (!current) return;
+ if (!current || !arg) return;
static XWindowAttributes wa;
XGetWindowAttributes(dis, current->win, &wa);