Hi,
I'm experimenting with the wibox.widgets-table of my wibox and I noticed
a confusing behavior:
I can place tables in the wibox and the objects in this, and I can add
an entry
"layout = awful.widget.layout.horizontal.foo"
to it. My wibox.widgets-code is shown down below. What confused me is
the fact, that the content of tables will be placed at the position it
is placed in the wibox.widgets-table ONLY when the internal layout is
the same as the global layout of the wibox.widgets-table.
Otherwise, if internal and external layout do not match, the contents of
the table are placed rightmost (with internal layout = rightleft) or
leftmost (when the internal layout is leftright), no matter whether
other widgets are put before or after them.
The order of the widgets of the table have the layout specified in the
table.

Long text to explain my question: Why does another internal layout than
the external affect the total order of the wibox widgets this way? Why
can't I place a table with another layout in the middle of the
wibox-table? Does that have a technical (or any other) certain reason or
is it just a decision of design? (Or maybe a bug, but I don't think so,
because I assume someone other will already have noticed this behavior.)

I deliver some examples down below (because I'm not sure I made the
problem clear, my text sounds quite confusing to me).
I hope I explained my problem clearly and I also hope someone can bring
some light into the darkness of my mind.

Thanks in advance,
Manuel

Code-excerpts:

VARIANT 1
mywibox[s].widgets = {
        {
            launcher,
            taglist[s],       
            layout = awful.widget.layout.horizontal.leftright
        },
        layoutbox[s],
        textclock,
        {testwidget, testwidget, separatorline, layout =
awful.widget.layout.horizontal.rightleft},
        tasklist[s],
        layout = awful.widget.layout.horizontal.rightleft
    }
With this code the wibox will be:
launcher, taglist, tasklist, separatorline, testwidget, testwidget,
textclock, layoutbox

VARIANT 2
mywibox[s].widgets = {
        {
            launcher,
            taglist[s],       
            layout = awful.widget.layout.horizontal.leftright
        },
        layoutbox[s],
        textclock,
        {testwidget, testwidget, separatorline, layout =
awful.widget.layout.horizontal.leftright},
        tasklist[s],
        layout = awful.widget.layout.horizontal.rightleft
    }
With this code the wibox will be:
launcher, taglist, testwidget, testwidget, separatorline, tasklist,
textclock, layoutbox

VARIANT3
mywibox[s].widgets = {
        {
            launcher,
            taglist[s],       
            layout = awful.widget.layout.horizontal.leftright
        },
        layoutbox[s],
        textclock,
        {testwidget, testwidget, separatorline, layout =
awful.widget.layout.horizontal.leftright},
        tasklist[s],
        layout = awful.widget.layout.horizontal.leftright
    }
With this code the wibox will be:
launcher, taglist, layoutbox, textclock, testwidget, testwidget,
separatorline, tasklist



-- 
To unsubscribe, send mail to [email protected].

Reply via email to