commit 6e8664bdd091d39bab869304db0374899eaad0d4
parent a1d855de5412504454a46963d4e3c3dea845ebd5
Author: Kris Maglione <jg@suckless.org>
Date: Wed, 21 Feb 2007 14:24:08 -0500
Return from do_mouse_resize after calling do_managed_move
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/mouse.c b/mouse.c
@@ -120,6 +120,7 @@ snap_rect(XRectangle *rects, int num, XRectangle *current,
a.y2 = a.y1 = r_south(current);
snap_line(&a);
}
+
a.y1 = current->y;
a.y2 = r_south(current);
a.delta = &dx;
@@ -131,8 +132,10 @@ snap_rect(XRectangle *rects, int num, XRectangle *current,
a.x1 = a.x2 = current->x;
snap_line(&a);
}
+
rect_morph_xy(current, abs(dx) <= snap ? dx : 0,
abs(dy) <= snap ? dy : 0, mask);
+
ret = *mask;
if(abs(dx) <= snap)
ret ^= EAST|WEST;
@@ -344,8 +347,10 @@ do_mouse_resize(Client *c, Bool grabbox, BlitzAlign align) {
if(align == CENTER) {
if(!grabbox)
cur = cursor[CurInvisible];
- if(!floating)
+ if(!floating) {
do_managed_move(c);
+ return;
+ }
}
XQueryPointer(blz.dpy, c->framewin, &dummy, &dummy, &i, &i, &pt_x, &pt_y, &di);