wibox.layout.fixed: Always draw "empty" widgets
commitebcda492a1e9e937e523bfb6346f82d3c389820b
authorUli Schlachter <psychon@znc.in>
Wed, 6 Oct 2010 17:47:34 +0000 (6 19:47 +0200)
committerUli Schlachter <psychon@znc.in>
Wed, 6 Oct 2010 17:47:34 +0000 (6 19:47 +0200)
treeb47c74addf7e706bad048a541fe6397ee24db05a
parent1fab3aa745efb62aa41bb04e24242e75816d0a17
wibox.layout.fixed: Always draw "empty" widgets

If a widget has a width/height of 0, we can safely draw it without running out
of the available space. This code checks if we got enough space after we now how
much space the next widget wants.

This fixes the systray. It has to be drawn at least once so that the C core can
set up stuff correctly. However, thanks to the systray having a width of 0, it
wasn't drawn by the layout.

Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/wibox/layout/fixed.lua.in