summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authorokan <okan>2009-08-24 23:49:04 +0000
committerokan <okan>2009-08-24 23:49:04 +0000
commit028a1778db0caa04ca4f82be32998a7f65c802a5 (patch)
tree9284024c4d2a1962e8959b43a9ad5d7b1d5cf997 /xevents.c
parent09d88f4a18623fff580e7381aa242dae5b53cc18 (diff)
downloadcwm-028a1778db0caa04ca4f82be32998a7f65c802a5.tar.gz
cwm-028a1778db0caa04ca4f82be32998a7f65c802a5.tar.xz
cwm-028a1778db0caa04ca4f82be32998a7f65c802a5.zip
bring together gathering, calculating and applying of size hints;
additionally, respect aspect ratio hints.

ok oga@
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xevents.c b/xevents.c
index 74214f3..a9f7bd2 100644
--- a/xevents.c
+++ b/xevents.c
@@ -171,12 +171,11 @@ xev_handle_propertynotify(XEvent *ee)
 {
 	XPropertyEvent		*e = &ee->xproperty;
 	struct client_ctx	*cc;
-	long			 tmp;
 
 	if ((cc = client_find(e->window)) != NULL) {
 		switch (e->atom) {
 		case XA_WM_NORMAL_HINTS:
-			XGetWMNormalHints(X_Dpy, cc->win, cc->size, &tmp);
+			client_getsizehints(cc);
 			break;
 		case XA_WM_NAME:
 			client_setname(cc);