diff options
author | okan | 2012-07-13 17:01:04 +0000 |
---|---|---|
committer | okan | 2012-07-13 17:01:04 +0000 |
commit | b6feb9c4c70841ec78711b4ffd93e6bcd578f388 (patch) | |
tree | b60432e1113e366850bcabfec8e5ad7788114fd9 /xevents.c | |
parent | a4c958a3f89733566a15f47d5ddc0167fe5e85d4 (diff) | |
download | cwm-b6feb9c4c70841ec78711b4ffd93e6bcd578f388.tar.gz |
re-use geom struct in client_ctx (saved)geometry.
Diffstat (limited to '')
-rw-r--r-- | xevents.c | 14 |
1 files changed, 7 insertions, 7 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.64 2012/07/13 15:21:35 okan Exp $ + * $OpenBSD: xevents.c,v 1.65 2012/07/13 17:01:04 okan Exp $ */ /* @@ -141,9 +141,9 @@ xev_handle_configurerequest(XEvent *ee) sc = cc->sc; if (e->value_mask & CWWidth) - cc->geom.width = e->width; + cc->geom.w = e->width; if (e->value_mask & CWHeight) - cc->geom.height = e->height; + cc->geom.h = e->height; if (e->value_mask & CWX) cc->geom.x = e->x; if (e->value_mask & CWY) @@ -151,16 +151,16 @@ 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->view.w) + if (cc->geom.x == 0 && cc->geom.w >= sc->view.w) cc->geom.x -= cc->bwidth; - if (cc->geom.y == 0 && cc->geom.height >= sc->view.h) + if (cc->geom.y == 0 && cc->geom.h >= sc->view.h) cc->geom.y -= cc->bwidth; wc.x = cc->geom.x; wc.y = cc->geom.y; - wc.width = cc->geom.width; - wc.height = cc->geom.height; + wc.width = cc->geom.w; + wc.height = cc->geom.h; wc.border_width = cc->bwidth; XConfigureWindow(X_Dpy, cc->win, e->value_mask, &wc); |