about summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2012-07-13 15:21:35 +0000
committerokan <okan>2012-07-13 15:21:35 +0000
commit186a78ff1e8f19155b337b68586cebc7495fcdf9 (patch)
tree200cd7019093779454b4d32799e45870567ec8b7 /mousefunc.c
parentcc08aef0df6236f794fb1d5dfcef265dba9da228 (diff)
downloadcwm-186a78ff1e8f19155b337b68586cebc7495fcdf9.tar.gz
cwm-186a78ff1e8f19155b337b68586cebc7495fcdf9.tar.xz
cwm-186a78ff1e8f19155b337b68586cebc7495fcdf9.zip
convert xmax/ymax uses to view geometry.
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 713b3bc..d404a18 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -162,10 +162,10 @@ mousefunc_window_move(struct client_ctx *cc, void *arg)
 			cc->geom.y = ev.xmotion.y_root - py - cc->bwidth;
 
 			cc->geom.x += client_snapcalc(cc->geom.x,
-			    cc->geom.width, sc->xmax,
+			    cc->geom.width, sc->view.w,
 			    cc->bwidth, Conf.snapdist);
 			cc->geom.y += client_snapcalc(cc->geom.y,
-			    cc->geom.height, sc->ymax,
+			    cc->geom.height, sc->view.h,
 			    cc->bwidth, Conf.snapdist);
 
 			/* don't move more than 60 times / second */