commit 67c8bc998a69c7e00624aed502337d841308f2fd
parent afda47cbf9d9e7aedf94856e8571cd1e4c737959
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Tue, 6 Jun 2006 18:56:31 +0200
fixed mouse-based movements (was broken due wrong pt-assignements in do_mouse_resize and a wrong parameter in drop_move for new_column)
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/wm/column.c b/cmd/wm/column.c
@@ -365,7 +365,7 @@ drop_move(Frame *f, XRectangle *new, XPoint *pt)
if(i < v->area.size) {
if(pt->x <= 5) {
if(src->frame.size > 1 || idx_of_area(src) != 1) {
- tgt = new_column(v, 0, 0);
+ tgt = new_column(v, 1, 0);
send_to_area(tgt, src, f->client);
}
}
diff --git a/cmd/wm/mouse.c b/cmd/wm/mouse.c
@@ -235,10 +235,10 @@ do_mouse_resize(Client *c, BlitzAlign align)
case MotionNotify:
ofrect = frect;
- pt.x = ev.xmotion.x;
- pt.y = ev.xmotion.y;
XTranslateCoordinates(dpy, c->framewin, root, ev.xmotion.x,
ev.xmotion.y, &px, &py, &dummy);
+ pt.x = px;
+ pt.y = py;
rect_morph_xy(&origin, px-ox, py-oy, &align);
frect=origin;