awesome/lib/wibox/layout
Emmanuel Lepage Vallee 83c31f948b fixed: Try to handle zero sized widgets again.
The newly changed code doesn't handle this well:

    local w = wibox.widget {
        {
            --add anything here
            widget = wibox.layout.fixed.horizontal
        },
        widget = wibox.layout.fixed.horizontal,
    }

This will cause the "inner" fixed layout to have the minimum size
it supports. In that case, if the last widget has "no size" because
it supports up to 0x0, then it isn't added to the layout.

This was done "on purpose" because if there is a spacing, then `:fit`
would have returned a size "too small" because the last spacing area
would be (correctly) missing.

But if the zero sized widget isn't added to the layout, then it's size
isn't tracker. So if it emits a layout_changed signal, nothing catches
it.

The "fix" is rather hacky and probably a little incorrect. It rely
on the behavior of `:fit()` to avoid adding the "wrong" widgets to
the layout, which is fragile.

However, I don't have a better idea.
2021-05-31 02:27:36 -07:00
..
align.lua doc(@supermodule): Add to wibox.layout modules 2021-04-02 19:24:07 +02:00
constraint.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
fixed.lua fixed: Try to handle zero sized widgets again. 2021-05-31 02:27:36 -07:00
flex.lua doc(layout.flex): Hide `fill_space` property doc 2021-04-02 20:02:39 +02:00
grid.lua doc(@supermodule): Add to wibox.layout modules 2021-04-02 19:24:07 +02:00
init.lua Fix ldoc modules summaries missing the final `.`. 2019-11-28 13:53:59 +01:00
manual.lua doc(@supermodule): Add to wibox.layout modules 2021-04-02 19:24:07 +02:00
margin.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
mirror.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
ratio.lua Add more @supermodule and @hidden 2021-04-02 19:24:07 +02:00
rotate.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
scroll.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
stack.lua doc(@supermodule): Add to wibox.layout modules 2021-04-02 19:24:07 +02:00