mirror of
https://github.com/0intro/wmii
synced 2025-01-27 04:23:22 +03:00
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:
parent
afda47cbf9
commit
67c8bc998a
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user