summaryrefslogtreecommitdiff
path: root/app/cwm/xevents.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/cwm/xevents.c')
-rw-r--r--app/cwm/xevents.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c
index 2a7c5e106..6d98e7191 100644
--- a/app/cwm/xevents.c
+++ b/app/cwm/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.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);