small simplification

This commit is contained in:
Anselm R. Garbe 2006-05-12 20:49:46 +02:00
parent ac9f54847f
commit 8179f185dc
1 changed files with 0 additions and 4 deletions

View File

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