diff options
author | oga <oga> | 2009-08-25 01:32:40 +0000 |
---|---|---|
committer | oga <oga> | 2009-08-25 01:32:40 +0000 |
commit | 8fd4ff1c7c4c3914e75213df9fce4c5e65cf2cd4 (patch) | |
tree | f02031bfcb2fc87d553c029bebe33777b7c27356 /mousefunc.c | |
parent | fcb2684db1d3e102b6ff578e0e686e0e089a403a (diff) | |
download | cwm-8fd4ff1c7c4c3914e75213df9fce4c5e65cf2cd4.tar.gz cwm-8fd4ff1c7c4c3914e75213df9fce4c5e65cf2cd4.tar.xz cwm-8fd4ff1c7c4c3914e75213df9fce4c5e65cf2cd4.zip |
Instead of messing around everytime we do a resize, just clamp the
resize increments to a minimum of one, and use it unconditionally. "you've convinced me, do it!" okan@
Diffstat (limited to 'mousefunc.c')
-rw-r--r-- | mousefunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c index 74bbf04..fdb55fa 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -49,8 +49,8 @@ mousefunc_sweep_draw(struct client_ctx *cc) int width, height, width_size, width_name; snprintf(asize, sizeof(asize), "%dx%d", - (cc->geom.width - cc->geom.basew) / MAX(1, cc->geom.incw), - (cc->geom.height - cc->geom.baseh) / MAX(1, cc->geom.inch)); + (cc->geom.width - cc->geom.basew) / cc->geom.incw, + (cc->geom.height - cc->geom.baseh) / cc->geom.inch); width_size = font_width(asize, strlen(asize)) + 4; width_name = font_width(cc->name, strlen(cc->name)) + 4; width = MAX(width_size, width_name); |