JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
removing all EnterNotifys after resize
authorAnselm R. Garbe <arg@suckless.org>
Mon, 12 Feb 2007 09:21:26 +0000 (10:21 +0100)
committerAnselm R. Garbe <arg@suckless.org>
Mon, 12 Feb 2007 09:21:26 +0000 (10:21 +0100)
event.c

diff --git a/event.c b/event.c
index cfe2d2a..938655d 100644 (file)
--- a/event.c
+++ b/event.c
@@ -85,6 +85,7 @@ resizemouse(Client *c) {
                        XWarpPointer(dpy, None, c->win, 0, 0, 0, 0,
                                        c->w + c->border - 1, c->h + c->border - 1);
                        XUngrabPointer(dpy, CurrentTime);
+                       while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
                        return;
                case ConfigureRequest:
                case Expose: