diff options
author | okan <okan> | 2012-07-13 15:21:35 +0000 |
---|---|---|
committer | okan <okan> | 2012-07-13 15:21:35 +0000 |
commit | 186a78ff1e8f19155b337b68586cebc7495fcdf9 (patch) | |
tree | 200cd7019093779454b4d32799e45870567ec8b7 /mousefunc.c | |
parent | cc08aef0df6236f794fb1d5dfcef265dba9da228 (diff) | |
download | cwm-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.c | 4 |
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 */ |