summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2011-09-03 09:42:33 +0000
committerokan <okan>2011-09-03 09:42:33 +0000
commitb852a73a60f96b45ae93ab5c7ea23a68743eaf04 (patch)
treeab0943b3d18b29e18cee5e59bb5c50bdd14d911b /mousefunc.c
parent325129c6baa2aca0cadbdb965fcdb520fc7d3912 (diff)
downloadcwm-b852a73a60f96b45ae93ab5c7ea23a68743eaf04.tar.gz
cwm-b852a73a60f96b45ae93ab5c7ea23a68743eaf04.tar.xz
cwm-b852a73a60f96b45ae93ab5c7ea23a68743eaf04.zip
split off window hints from geometry so we don't need to carry them all
around when dealing with {,h,v}max.  same idea from oga.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 6e697de..ddbcff1 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -58,8 +58,8 @@ mousefunc_sweep_draw(struct client_ctx *cc)
 	int			 width, width_size, width_name;
 
 	(void)snprintf(asize, sizeof(asize), "%dx%d",
-	    (cc->geom.width - cc->geom.basew) / cc->geom.incw,
-	    (cc->geom.height - cc->geom.baseh) / cc->geom.inch);
+	    (cc->geom.width - cc->hint.basew) / cc->hint.incw,
+	    (cc->geom.height - cc->hint.baseh) / cc->hint.inch);
 	width_size = font_width(sc, asize, strlen(asize)) + 4;
 	width_name = font_width(sc, cc->name, strlen(cc->name)) + 4;
 	width = MAX(width_size, width_name);