aewl
diff event.c @ 482:acb1fc729a8c
ismax toggling on mouse based action
author | arg@mmvi |
---|---|
date | Fri, 22 Sep 2006 14:00:54 +0200 |
parents | 635b58a87d20 |
children | be4f90c03582 |
line diff
1.1 --- a/event.c Fri Sep 22 13:58:21 2006 +0200 1.2 +++ b/event.c Fri Sep 22 14:00:54 2006 +0200 1.3 @@ -49,6 +49,7 @@ 1.4 if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, 1.5 None, cursor[CurMove], CurrentTime) != GrabSuccess) 1.6 return; 1.7 + c->ismax = False; 1.8 XQueryPointer(dpy, root, &dummy, &dummy, &x1, &y1, &di, &di, &dui); 1.9 for(;;) { 1.10 XMaskEvent(dpy, MOUSEMASK | ExposureMask | StructureNotifyMask, &ev); 1.11 @@ -92,6 +93,7 @@ 1.12 if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, 1.13 None, cursor[CurResize], CurrentTime) != GrabSuccess) 1.14 return; 1.15 + c->ismax = False; 1.16 XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w, c->h); 1.17 for(;;) { 1.18 XMaskEvent(dpy, MOUSEMASK | ExposureMask | StructureNotifyMask, &ev);