| tapplied Martin Hurtons resizemouse patch - dwm - [fork] customized build of dw… | |
| git clone git://src.adamsgaard.dk/dwm | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 47f63dce550fab02f9d15aca5cec8c137125ac16 | |
| parent 02a8ca95cf22d9b1da50dffffefa31fb563c3852 | |
| Author: Anselm R Garbe <[email protected]> | |
| Date: Mon, 18 Aug 2008 19:19:15 +0100 | |
| applied Martin Hurtons resizemouse patch | |
| Diffstat: | |
| M dwm.c | 12 +++++------- | |
| 1 file changed, 5 insertions(+), 7 deletions(-) | |
| --- | |
| diff --git a/dwm.c b/dwm.c | |
| t@@ -1127,15 +1127,9 @@ resizemouse(const Arg *arg) { | |
| None, cursor[CurResize], CurrentTime) != GrabSuccess) | |
| return; | |
| XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c… | |
| - for(;;) { | |
| + do { | |
| XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMas… | |
| switch(ev.type) { | |
| - case ButtonRelease: | |
| - XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, | |
| - c->w + c->bw - 1, c->h + c->bw - 1); | |
| - XUngrabPointer(dpy, CurrentTime); | |
| - while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); | |
| - return; | |
| case ConfigureRequest: | |
| case Expose: | |
| case MapRequest: | |
| t@@ -1157,6 +1151,10 @@ resizemouse(const Arg *arg) { | |
| break; | |
| } | |
| } | |
| + while(ev.type != ButtonRelease); | |
| + XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c… | |
| + XUngrabPointer(dpy, CurrentTime); | |
| + while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); | |
| } | |
| void |