wibox: add ontop as possible opt in constructor

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-01-14 11:28:13 +01:00
parent ce396bc189
commit 4fdd239500
1 changed files with 3 additions and 1 deletions

View File

@ -669,7 +669,7 @@ wibox_attach(wibox_t *wibox, screen_t *s)
*
* \luastack
* \lparam A table with optionaly defined values:
* position, align, fg, bg, border_width, border_color, width and height.
* position, align, fg, bg, border_width, border_color, ontop, width and height.
* \lreturn A brand new wibox.
*/
int
@ -698,6 +698,8 @@ luaA_wibox_new(lua_State *L)
if((buf = luaA_getopt_lstring(L, 2, "border_color", NULL, &len)))
reqs[++reqs_nbr] = xcolor_init_unchecked(&w->sw.border.color, buf, len);
w->ontop = luaA_getopt_boolean(L, 2, "ontop", false);
buf = luaA_getopt_lstring(L, 2, "align", "left", &len);
w->align = draw_align_fromstr(buf, len);