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