about summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authorokan <okan>2012-07-13 17:01:04 +0000
committerokan <okan>2012-07-13 17:01:04 +0000
commit0e8815dfb02f38a622d71ea3eb5644e6d5b8fb90 (patch)
tree4eec9e571a6f54b5fcb70a6751738f819a3a9678 /xevents.c
parent186a78ff1e8f19155b337b68586cebc7495fcdf9 (diff)
downloadcwm-0e8815dfb02f38a622d71ea3eb5644e6d5b8fb90.tar.gz
cwm-0e8815dfb02f38a622d71ea3eb5644e6d5b8fb90.tar.xz
cwm-0e8815dfb02f38a622d71ea3eb5644e6d5b8fb90.zip
re-use geom struct in client_ctx (saved)geometry.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xevents.c b/xevents.c
index fad3cd1..eddf4fe 100644
--- a/xevents.c
+++ b/xevents.c
@@ -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);