From 4fdd239500c68dab770d7a1aa755eba90189d780 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 14 Jan 2009 11:28:13 +0100 Subject: [PATCH] wibox: add ontop as possible opt in constructor Signed-off-by: Julien Danjou --- wibox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wibox.c b/wibox.c index 79c32c8e..03704405 100644 --- a/wibox.c +++ b/wibox.c @@ -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); -- 2.11.4.GIT