wibox: modify border color live

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-12 17:25:27 +02:00
parent a57b87b411
commit 3c11511316
1 changed files with 3 additions and 1 deletions

View File

@ -964,7 +964,9 @@ luaA_wibox_newindex(lua_State *L)
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));
if(xcolor_init_reply(xcolor_init_unchecked(&(*wibox)->sw.border.color, buf, len)))
if((*wibox)->sw.window)
simplewindow_border_color_set(&(*wibox)->sw, &(*wibox)->sw.border.color);
break;
case A_TK_VISIBLE:
b = luaA_checkboolean(L, 3);