From d9d6b4f88fa9e3a0f1c7908aa6b237b2d77d298b Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 30 Nov 2017 18:18:51 +0000 Subject: [PATCH] =?UTF-8?q?Revert=20r1.109=20(Switch=20to=20XWindowEvent()?= =?UTF-8?q?=20pulling=20out=20events=20that=20match=20the=20mask=20*and*?= =?UTF-8?q?=20window.)=20of=20mousefunc.c.=20When=20a=20client=20destroys?= =?UTF-8?q?=20itself=20while=20we=20are=20moving=20or=20resizing=20it,=20X?= =?UTF-8?q?WindowEvent()=20blocks.=20Found=20the=20hard=20way=20by=20Anton?= =?UTF-8?q?=20Lazarov,=20and=20Lea=C2=B0hNeukirchen=20found=20the=20right?= =?UTF-8?q?=20bit=20to=20revert=20-=20thanks!=20Reverting=20since=20the=20?= =?UTF-8?q?reason=20to=20switch=20from=20XMaskEvent=20was=20unclear.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kbfunc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kbfunc.c b/kbfunc.c index ba3b155..e49c24f 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -168,7 +168,7 @@ kbfunc_client_move_mb(void *ctx, struct cargs *cargs) menu_windraw(sc, cc->win, "%4d, %-4d", cc->geom.x, cc->geom.y); while (move) { - XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev); + XMaskEvent(X_Dpy, MOUSEMASK, &ev); switch (ev.type) { case MotionNotify: /* not more than 60 times / second */ @@ -256,7 +256,7 @@ kbfunc_client_resize_mb(void *ctx, struct cargs *cargs) menu_windraw(sc, cc->win, "%4d x %-4d", cc->dim.w, cc->dim.h); while (resize) { - XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev); + XMaskEvent(X_Dpy, MOUSEMASK, &ev); switch (ev.type) { case MotionNotify: /* not more than 60 times / second */