From 3c115113168f6ba4c12545a73f002f4a46256129 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 12 Oct 2008 17:25:27 +0200 Subject: [PATCH] wibox: modify border color live Signed-off-by: Julien Danjou --- wibox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wibox.c b/wibox.c index 0d2a66527..c5ffdcc29 100644 --- a/wibox.c +++ b/wibox.c @@ -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);