awesome/spec
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
..
awful use user specified permission. 2020-03-08 05:04:40 -04:00
beautiful test(spec: beautiful: get_font): convert user object to string before comparison (#3348) 2021-05-23 21:23:33 -07:00
gears Add missing modelines 2021-03-22 20:24:56 +01:00
menubar Aligning 'regex' with other PR / Minor readability improvements 2019-02-09 19:21:46 +11:00
wibox fixed: Try to handle zero sized widgets again. 2021-05-31 02:27:36 -07:00
preload.lua beautiful.init: Fix return values and improve doco. fixes: #2588 #2592 2019-01-25 22:56:41 +11:00