aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan2012-07-13 15:21:35 +0000
committerokan2012-07-13 15:21:35 +0000
commita4c958a3f89733566a15f47d5ddc0167fe5e85d4 (patch)
treec389a5df0d1eac207d889d53e01760717fb24f45 /mousefunc.c
parent5e6e2b31dc906e221316757e7b05b680209148b1 (diff)
downloadcwm-a4c958a3f89733566a15f47d5ddc0167fe5e85d4.tar.gz
convert xmax/ymax uses to view geometry.
Diffstat (limited to '')
-rw-r--r--mousefunc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c
index b84e189..1361617 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: mousefunc.c,v 1.35 2012/07/04 23:42:03 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.36 2012/07/13 15:21:35 okan Exp $
*/
#include <sys/param.h>
@@ -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 */