changeset: 1335:83da51dfedd3
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Mon Aug 18 19:19:15 2008 +0100
files: dwm.c
description:
applied Martin Hurtons resizemouse patch
diff -r 6f9cf8bcc4a7 -r 83da51dfedd3 dwm.c
--- a/dwm.c Mon Aug 18 18:23:39 2008 +0100
+++ b/dwm.c Mon Aug 18 19:19:15 2008 +0100
@@ -1127,15 +1127,9 @@
None, cursor[CurResize], CurrentTime) != GrabSuccess)
return;
XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1);
- for(;;) {
+ do {
XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask , &ev);
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:
@@ -1157,6 +1151,10 @@
break;
}
}
+ while(ev.type != 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));
}
void
Received on Mon Aug 18 2008 - 18:19:43 UTC
This archive was generated by hypermail 2.2.0 : Mon Aug 18 2008 - 18:24:05 UTC