ismax toggling on mouse based action
authorarg@mmvi
Fri, 22 Sep 2006 14:00:54 +0200
changeset 482 acb1fc729a8c
parent 481 382e3cb5d9a5
child 483 0db173d7e59c
ismax toggling on mouse based action
event.c
--- a/event.c	Fri Sep 22 13:58:21 2006 +0200
+++ b/event.c	Fri Sep 22 14:00:54 2006 +0200
@@ -49,6 +49,7 @@
 	if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
 			None, cursor[CurMove], CurrentTime) != GrabSuccess)
 		return;
+	c->ismax = False;
 	XQueryPointer(dpy, root, &dummy, &dummy, &x1, &y1, &di, &di, &dui);
 	for(;;) {
 		XMaskEvent(dpy, MOUSEMASK | ExposureMask | StructureNotifyMask, &ev);
@@ -92,6 +93,7 @@
 	if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
 				None, cursor[CurResize], CurrentTime) != GrabSuccess)
 		return;
+	c->ismax = False;
 	XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w, c->h);
 	for(;;) {
 		XMaskEvent(dpy, MOUSEMASK | ExposureMask | StructureNotifyMask, &ev);