about summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2013-12-13 12:57:57 +0000
committerChristian Neukirchen <chneukirchen@gmail.com>2013-12-13 12:57:57 +0000
commit0cad4ef6e01dd4154816dde10b753ffef3c2e44b (patch)
tree82803a8a4c4a14a18595613a2b9e3bb644ac6bba /mousefunc.c
parent140028e90538a48503962bb96be5ce62df73d917 (diff)
parentfe177b7c611d6c557275c7c9869cb7c31fa1a7e2 (diff)
downloadcwm-0cad4ef6e01dd4154816dde10b753ffef3c2e44b.tar.gz
cwm-0cad4ef6e01dd4154816dde10b753ffef3c2e44b.tar.xz
cwm-0cad4ef6e01dd4154816dde10b753ffef3c2e44b.zip
cvsimport
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 65efa35..f4bbae1 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -147,10 +147,10 @@ mousefunc_client_move(struct client_ctx *cc, void *arg)
 
 			cc->geom.x += client_snapcalc(cc->geom.x,
 			    cc->geom.x + cc->geom.w + (cc->bwidth * 2),
-			    sc->work.x, sc->work.w, sc->snapdist);
+			    sc->work.x, sc->work.x + sc->work.w, sc->snapdist);
 			cc->geom.y += client_snapcalc(cc->geom.y,
 			    cc->geom.y + cc->geom.h + (cc->bwidth * 2),
-			    sc->work.y, sc->work.h, sc->snapdist);
+			    sc->work.y, sc->work.y + sc->work.h, sc->snapdist);
 
 			/* don't move more than 60 times / second */
 			if ((ev.xmotion.time - ltime) > (1000 / 60)) {