Browse Source

ismax toggling on mouse based action

main
arg@mmvi 18 years ago
parent
commit
da909dd1e8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      event.c

+ 2
- 0
event.c View File

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


Loading…
Cancel
Save