diff options
author | okan | 2016-09-30 15:05:02 +0000 |
---|---|---|
committer | okan | 2016-09-30 15:05:02 +0000 |
commit | 91a18250def9bac118f6198caf2b551ee606ce4d (patch) | |
tree | 0c1a064ca028f08690139bdd447bd811f5d4c5a6 | |
parent | a9e18c1f32ccd0a8449c00d663eadbce485f8b88 (diff) | |
download | cwm-91a18250def9bac118f6198caf2b551ee606ce4d.tar.gz |
Switch to XWindowEvent() pulling out events that match the mask *and*
window.
-rw-r--r-- | mousefunc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c index 805a100..d1491af 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.108 2016/09/29 00:21:55 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.109 2016/09/30 15:05:02 okan Exp $ */ #include <sys/types.h> @@ -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: |