diff options
author | okan | 2012-07-13 15:21:35 +0000 |
---|---|---|
committer | okan | 2012-07-13 15:21:35 +0000 |
commit | a4c958a3f89733566a15f47d5ddc0167fe5e85d4 (patch) | |
tree | c389a5df0d1eac207d889d53e01760717fb24f45 /xevents.c | |
parent | 5e6e2b31dc906e221316757e7b05b680209148b1 (diff) | |
download | cwm-a4c958a3f89733566a15f47d5ddc0167fe5e85d4.tar.gz |
convert xmax/ymax uses to view geometry.
Diffstat (limited to 'xevents.c')
-rw-r--r-- | xevents.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |