aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan2011-09-03 09:42:33 +0000
committerokan2011-09-03 09:42:33 +0000
commitc3ab5d4f1316da4c6aba8acb4460121ee3e45b59 (patch)
tree418448f0e4caf5939426e4e63f92a58ec951dc9b /mousefunc.c
parent41d2656d3236f0988ac500f3899c14cfec52598c (diff)
downloadcwm-c3ab5d4f1316da4c6aba8acb4460121ee3e45b59.tar.gz
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 '')
-rw-r--r--mousefunc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 9f44029..b897a7f 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: mousefunc.c,v 1.32 2011/07/25 15:10:24 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.33 2011/09/03 09:42:33 okan Exp $
*/
#include <sys/param.h>
@@ -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);