about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@mmvi <unknown>2006-09-22 14:00:54 +0200
committerarg@mmvi <unknown>2006-09-22 14:00:54 +0200
commitda909dd1e879f9966c77735db3fe322f0f303a1c (patch)
treefabfc31967f6db40ed57338cc3e43edc046e8054
parent67986e81eed4a76cb4c50aed62ddb1fd14c4659d (diff)
downloaddwm-da909dd1e879f9966c77735db3fe322f0f303a1c.tar.gz
ismax toggling on mouse based action
-rw-r--r--event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/event.c b/event.c
index 86c4819..9f120d7 100644
--- a/event.c
+++ b/event.c
@@ -49,6 +49,7 @@ movemouse(Client *c) {
 	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 @@ resizemouse(Client *c) {
 	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);