From a4c958a3f89733566a15f47d5ddc0167fe5e85d4 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 13 Jul 2012 15:21:35 +0000 Subject: convert xmax/ymax uses to view geometry. --- mousefunc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mousefunc.c') 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 @@ -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 */ -- cgit v1.2.3-2-gb3c3