convert xmax/ymax uses to view geometry.

This commit is contained in:
okan
2012-07-13 15:21:35 +00:00
parent cc08aef0df
commit 186a78ff1e
8 changed files with 24 additions and 29 deletions

View File

@@ -151,10 +151,10 @@ xev_handle_configurerequest(XEvent *ee)
if (e->value_mask & CWBorderWidth)
wc.border_width = e->border_width;
if (cc->geom.x == 0 && cc->geom.width >= sc->xmax)
if (cc->geom.x == 0 && cc->geom.width >= sc->view.w)
cc->geom.x -= cc->bwidth;
if (cc->geom.y == 0 && cc->geom.height >= sc->ymax)
if (cc->geom.y == 0 && cc->geom.height >= sc->view.h)
cc->geom.y -= cc->bwidth;
wc.x = cc->geom.x;