dwm-meillo

changeset 482:acb1fc729a8c

ismax toggling on mouse based action
author arg@mmvi
date Fri, 22 Sep 2006 14:00:54 +0200
parents 382e3cb5d9a5
children 0db173d7e59c
files event.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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);