all repos — dwm @ da909dd1e879f9966c77735db3fe322f0f303a1c

my dwm build

ismax toggling on mouse based action
arg@mmvi unknown
Fri, 22 Sep 2006 14:00:54 +0200
commit

da909dd1e879f9966c77735db3fe322f0f303a1c

parent

67986e81eed4a76cb4c50aed62ddb1fd14c4659d

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M event.cevent.c

@@ -49,6 +49,7 @@ ocy = c->y;

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 @@ ocy = c->y;

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);