convert xmax/ymax uses to view geometry.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user