On Wed, Sep 09, 2009 at 09:54:03AM +0200, Julien Danjou wrote: > [...] > Well, maybe if you can be more precise about the issue you are seeing > and want to fix, and/or have a test case to validate someone could help > easily? > [...]
Sure. I attached a testcase, which, when run, should create a wibox with
the following stuff in it:
+------------------------------------+
| ###GREEN### blargh blargh |
| blargh ###RED##### |
| blargh |
| blargh |
| |
+------------------------------------+
Where each occurence of "blargh" is a textbox and #####FOO####
represents a progress bar.
For reasons I couldn't yet fathom, the red bar is drawn over the green
bar, so only red is visible. I suspect it has something to do with the
free area returned by the { pb1, tb3} subtable, but I'm not sure.
--
GCS/IT/M d- s+:- a-- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- ?O M-- ?V PS++ PE- Y++ PGP+++ t+ 5 X+ R tv b+++ DI+++
D+++ G+ e h! r y+
Gregor Best
w = awful.wibox({ position = "floating" })
w:buttons(awful.util.table.join(awful.button({ }, 1, awful.mouse.wibox.move)))
w.screen = 1
w.ontop = true
w:geometry({ x = 200, y = 20, width = 400, height = 64 })
pb1 = awful.widget.progressbar({ height = 16 })
pb1:set_color("#00FF00")
pb1:set_value(0.25)
pb2 = awful.widget.progressbar({ height = 16 })
pb2:set_color("#FF0000")
pb2:set_value(0.75)
tb3 = widget({ type = "textbox" })
tb3.text = "blargh"
w.widgets = {
{
tb3,
tb3,
tb3,
["layout"] = awful.widget.layout.vertical.center
},
{
{
pb1,
tb3,
["layout"] = awful.widget.layout.horizontal.leftright
},
pb2,
["layout"] = awful.widget.layout.vertical.topdown
},
tb3,
["layout"] = awful.widget.layout.horizontal.leftright
}
pgpZNDkNnVUxq.pgp
Description: PGP signature
