From 6984e239c88467847a77089205be5f288a85f20b Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Fri, 10 Aug 2012 09:53:38 +0300 Subject: be able to resize floating windows when they have no border - fixes #13 --- monsterwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monsterwm.c') diff --git a/monsterwm.c b/monsterwm.c index ca5be67..21b0cc6 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -725,7 +725,7 @@ void mousemotion(const Arg *arg) { if (!d->curr || !XGetWindowAttributes(dis, d->curr->win, &wa)) return; - if (arg->i == RESIZE) XWarpPointer(dis, d->curr->win, d->curr->win, 0, 0, 0, 0, wa.width, wa.height); + if (arg->i == RESIZE) XWarpPointer(dis, d->curr->win, d->curr->win, 0, 0, 0, 0, --wa.width, --wa.height); int rx, ry, c, xw, yh; unsigned int v; Window w; if (!XQueryPointer(dis, root, &w, &w, &rx, &ry, &c, &c, &v) || w != d->curr->win) return; -- cgit v1.3.1