mirror of https://github.com/0intro/wmii
Fix a possible segfault in bar sizing
This commit is contained in:
parent
8b1e64bb50
commit
4c6e737870
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue