mirror of
https://github.com/0intro/wmii
synced 2024-11-27 00:00:36 +03:00
Sander, please check again ;)
This commit is contained in:
parent
308405cc11
commit
ac9f54847f
@ -198,6 +198,7 @@ do_mouse_move(Client *c, XButtonPressedEvent *e, Bool swap)
|
|||||||
pt.y = ey;
|
pt.y = ey;
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
|
|
||||||
|
ungrab_mouse(c->framewin, AnyModifier, AnyButton);
|
||||||
if(XGrabPointer(dpy, root, False, MouseMask, GrabModeAsync, GrabModeAsync,
|
if(XGrabPointer(dpy, root, False, MouseMask, GrabModeAsync, GrabModeAsync,
|
||||||
None, cursor[CurMove], e->time) != GrabSuccess)
|
None, cursor[CurMove], e->time) != GrabSuccess)
|
||||||
return;
|
return;
|
||||||
@ -218,8 +219,9 @@ do_mouse_move(Client *c, XButtonPressedEvent *e, Bool swap)
|
|||||||
else
|
else
|
||||||
resize_client(c, &frect, False);
|
resize_client(c, &frect, False);
|
||||||
}
|
}
|
||||||
|
update_client_grab(c, True);
|
||||||
free(rects);
|
free(rects);
|
||||||
XUngrabPointer(dpy, CurrentTime /* ev.xbutton.time */ );
|
XUngrabPointer(dpy, ev.xbutton.time);
|
||||||
XUngrabServer(dpy);
|
XUngrabServer(dpy);
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
return;
|
return;
|
||||||
@ -437,6 +439,7 @@ do_mouse_resize(Client *c, XButtonPressedEvent *e, BlitzAlign align)
|
|||||||
XQueryPointer(dpy, c->framewin, &dummy, &dummy, &i, &i, &ox, &oy, &dmask);
|
XQueryPointer(dpy, c->framewin, &dummy, &dummy, &i, &i, &ox, &oy, &dmask);
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
|
|
||||||
|
ungrab_mouse(c->framewin, AnyModifier, AnyButton);
|
||||||
if(XGrabPointer(dpy, c->framewin, False, MouseMask, GrabModeAsync, GrabModeAsync,
|
if(XGrabPointer(dpy, c->framewin, False, MouseMask, GrabModeAsync, GrabModeAsync,
|
||||||
None, cursor[CurResize], e->time) != GrabSuccess)
|
None, cursor[CurResize], e->time) != GrabSuccess)
|
||||||
return;
|
return;
|
||||||
@ -456,7 +459,8 @@ do_mouse_resize(Client *c, XButtonPressedEvent *e, BlitzAlign align)
|
|||||||
else
|
else
|
||||||
resize_client(c, &frect, False);
|
resize_client(c, &frect, False);
|
||||||
}
|
}
|
||||||
XUngrabPointer(dpy, CurrentTime /* ev.xbutton.time */ );
|
update_client_grab(c, True);
|
||||||
|
XUngrabPointer(dpy, ev.xbutton.time);
|
||||||
XUngrabServer(dpy);
|
XUngrabServer(dpy);
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user