aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-26 01:55:03 +0000
committerrsc <devnull@localhost>2004-03-26 01:55:03 +0000
commit4e3a2cc1f96f4479f951958f9ca1860f57a0771b (patch)
treeb759f362d4341cbcf3cd15280e082bf656e2c770 /src
parentd126ebb544cffe6916f45f6b2f14a1658708264c (diff)
downloadplan9port-4e3a2cc1f96f4479f951958f9ca1860f57a0771b.tar.gz
plan9port-4e3a2cc1f96f4479f951958f9ca1860f57a0771b.tar.bz2
plan9port-4e3a2cc1f96f4479f951958f9ca1860f57a0771b.zip
fix resizing of fixed-size windows
Diffstat (limited to 'src')
-rw-r--r--src/cmd/rio/grab.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/cmd/rio/grab.c b/src/cmd/rio/grab.c
index bcc14005..b9a19569 100644
--- a/src/cmd/rio/grab.c
+++ b/src/cmd/rio/grab.c
@@ -366,14 +366,8 @@ sweepdrag(Client *c, XButtonEvent *e0, void (*recalc)(Client*, int, int))
c->y -= BORDER;
c->dx += 2*BORDER;
c->dy += 2*BORDER;
- if (e0) {
+ if (e0)
getmouse(&c->x, &c->y, c->screen);
-/*
- c->x = cx = e0->x;
- c->y = cy = e0->y;
- recalc(c, e0->x, e0->y);
-*/
- }
else
getmouse(&cx, &cy, c->screen);
XGrabServer(dpy);
@@ -459,8 +453,6 @@ sweep(Client *c)
ungrab(e);
return 0;
}
- if (c->size.flags & (PMinSize|PBaseSize))
- setmouse(e->x+c->min_dx, e->y+c->min_dy, s);
XChangeActivePointerGrab(dpy, ButtonMask, s->boxcurs, e->time);
return sweepdrag(c, e, sweepcalc);
}