From 186a78ff1e8f19155b337b68586cebc7495fcdf9 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. --- xevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index 9478505..fad3cd1 100644 --- a/xevents.c +++ b/xevents.c @@ -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; -- cgit 1.4.1