aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-08-10 09:53:38 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-08-10 09:53:38 +0300
commit6984e239c88467847a77089205be5f288a85f20b (patch)
tree66b33299f75e319ab4fa56c9670d563d47f765f7 /monsterwm.c
parent2f208a19e61566919979d1145da6bfc8e51e4595 (diff)
be able to resize floating windows when they have no border - fixes #13
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c2
1 files changed, 1 insertions, 1 deletions
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;