wibox: newindex allow border color change

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-12 17:02:42 +02:00
parent 14670defd9
commit ebab2b7707
1 changed files with 4 additions and 0 deletions

View File

@ -954,6 +954,10 @@ luaA_wibox_newindex(lua_State *L)
(*wibox)->need_update = true;
}
break;
case A_TK_BORDER_COLOR:
if((buf = luaL_checklstring(L, 3, &len)))
xcolor_init_reply(xcolor_init_unchecked(&(*wibox)->sw.border.color, buf, len));
break;
case A_TK_VISIBLE:
b = luaA_checkboolean(L, 3);
if(b != (*wibox)->isvisible)