From 88ee1e037e4820354d5f61d991004a45f8191f9b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 28 Dec 2007 17:39:29 +0100 Subject: [PATCH] drop PointerMotion events while resizing --- mouse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mouse.c b/mouse.c index 9bb8df00..346769f8 100644 --- a/mouse.c +++ b/mouse.c @@ -106,6 +106,7 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused))) else if(abs((area.y + area.height) - (ny + c->h + 2 * c->border)) < globalconf.screens[screen].snap) ny = area.y + area.height - c->h - 2 * c->border; client_resize(c, nx, ny, c->w, c->h, False, False); + while(XCheckMaskEvent(globalconf.display, PointerMotionMask, &ev)); break; } }