changeset: 1924:a486e27c41f4
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Wed Feb 21 14:24:08 2007 -0500
summary: Return from do_mouse_resize after calling do_managed_move
diff -r 9cd569955aaa -r a486e27c41f4 mouse.c
--- a/mouse.c Wed Feb 21 02:14:22 2007 -0500
+++ b/mouse.c Wed Feb 21 14:24:08 2007 -0500
@@ -120,6 +120,7 @@ snap_rect(XRectangle *rects, int num, XR
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, XR
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,
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);
Received on Wed Feb 21 2007 - 20:26:12 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:39 UTC