changeset: 2394:8e98a3ac33b1
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sat Oct 18 22:29:21 2008 -0400
files: cmd/wmii/mouse.c
description:
Fix some more mouse resizing bugs
diff -r dfe0d9631049 -r 8e98a3ac33b1 cmd/wmii/mouse.c
--- a/cmd/wmii/mouse.c Sat Oct 18 21:27:53 2008 -0400
+++ b/cmd/wmii/mouse.c Sat Oct 18 22:29:21 2008 -0400
@@ -431,8 +431,7 @@
pt = addpt(pt, d);
rect_morph(&origin, d, &align);
- origin = constrain(origin, -1);
- frect = origin;
+ frect = constrain(origin, -1);
grav = snap_rect(rects, nrect, &frect, &align, def.snap);
@@ -445,8 +444,8 @@
pt = addpt(c->framewin->r.min,
Pt(Dx(frect) * rx,
Dy(frect) * ry));
- if(pt.y > f->view->r[f->area->screen].max.y)
- pt.y = f->view->r[f->area->screen].max.y - 1;
+ if(pt.y > scr.rect.max.y)
+ pt.y = scr.rect.max.y - 1;
warppointer(pt);
free(rects);
Received on Sun Oct 19 2008 - 02:29:23 UTC
This archive was generated by hypermail 2.2.0 : Sun Oct 19 2008 - 02:36:04 UTC