wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 4c6e7378708cf2e5ac560e155f583f74a64a6009
parent 8b1e64bb5074165175e7bc1538cee07cf6645613
Author: Kris Maglione <bsdaemon@wmii.de>
Date:   Thu, 29 Jun 2006 23:09:47 -0400

Fix a possible segfault in bar sizing


Diffstat:
cmd/wm/bar.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/cmd/wm/bar.c b/cmd/wm/bar.c @@ -125,6 +125,7 @@ draw_bar(WMScreen *s) if(tb->brush.rect.width * shrink >= tb->smaller->brush.rect.width) break; } + if(tb) for(b=largest; b != tb->smaller; b=b->smaller) b->brush.rect.width = floor(b->brush.rect.width * shrink); width += tw * shrink;