fixed mouse-based movements (was broken due wrong pt-assignements in do_mouse_resize and a wrong parameter in drop_move for new_column)

This commit is contained in:
Anselm R. Garbe 2006-06-06 18:56:31 +02:00
parent afda47cbf9
commit 67c8bc998a
2 changed files with 3 additions and 3 deletions

View File

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

View File

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