aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2012-07-13 15:21:35 +0000
committerokan2012-07-13 15:21:35 +0000
commita4c958a3f89733566a15f47d5ddc0167fe5e85d4 (patch)
treec389a5df0d1eac207d889d53e01760717fb24f45 /xevents.c
parent5e6e2b31dc906e221316757e7b05b680209148b1 (diff)
downloadcwm-a4c958a3f89733566a15f47d5ddc0167fe5e85d4.tar.gz
convert xmax/ymax uses to view geometry.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xevents.c b/xevents.c
index 9480c7d..2a7c5e1 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xevents.c,v 1.63 2012/07/06 14:18:00 okan Exp $
+ * $OpenBSD: xevents.c,v 1.64 2012/07/13 15:21:35 okan Exp $
*/
/*
@@ -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;