all repos — fluxbox @ 4304e667870709f29f0fda9e5fbc56cdd81744cc

custom fork of the fluxbox windowmanager

catch absurd but possible div-by-zero
Thomas Lübking thomas.luebking@gmail.com
commit

4304e667870709f29f0fda9e5fbc56cdd81744cc

parent

d4e9bb7656ee95eeb796f26671037d4ccf64372a

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/Toolbar.ccsrc/Toolbar.cc

@@ -936,7 +936,7 @@ float stretch_factor = 1.0f;

if (relative_items) { if (relative_width <= width - fixed_width && stretch_items) { relative_width = int(width - fixed_width - relative_width)/stretch_items; - } else { + } else if (relative_width) { stretch_factor = float(width - fixed_width)/relative_width; relative_width = 0; }