diff options
author | okan <okan> | 2016-09-30 15:05:02 +0000 |
---|---|---|
committer | okan <okan> | 2016-09-30 15:05:02 +0000 |
commit | f63b2e2341b8e883598ab33a46708ae315a63a99 (patch) | |
tree | 78538a1c7516db28d6074a2fce5988ad5ee22e70 | |
parent | 24d6348e52c0732e1c2564eceeae8159a47d9bb7 (diff) | |
download | cwm-f63b2e2341b8e883598ab33a46708ae315a63a99.tar.gz cwm-f63b2e2341b8e883598ab33a46708ae315a63a99.tar.xz cwm-f63b2e2341b8e883598ab33a46708ae315a63a99.zip |
Switch to XWindowEvent() pulling out events that match the mask *and*
window.
-rw-r--r-- | mousefunc.c | 4 |
1 files 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: |