From f63b2e2341b8e883598ab33a46708ae315a63a99 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 30 Sep 2016 15:05:02 +0000 Subject: [PATCH] Switch to XWindowEvent() pulling out events that match the mask *and* window. --- mousefunc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mousefunc.c b/mousefunc.c index 5b795cc..9d47531 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -76,7 +76,7 @@ mousefunc_client_resize(struct client_ctx *cc, union arg *arg) xu_ptr_setpos(cc->win, cc->geom.w, cc->geom.h); for (;;) { - XMaskEvent(X_Dpy, MOUSEMASK, &ev); + XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev); switch (ev.type) { case MotionNotify: @@ -129,7 +129,7 @@ mousefunc_client_move(struct client_ctx *cc, union arg *arg) xu_ptr_getpos(cc->win, &px, &py); for (;;) { - XMaskEvent(X_Dpy, MOUSEMASK, &ev); + XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev); switch (ev.type) { case MotionNotify: