[titlebar] Redraw on widget_add
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
35b5afe38c
commit
131f31c561
|
@ -439,13 +439,18 @@ luaA_titlebar_widget_add(lua_State *L)
|
||||||
titlebar_t **tb = luaL_checkudata(L, 1, "titlebar");
|
titlebar_t **tb = luaL_checkudata(L, 1, "titlebar");
|
||||||
widget_t **widget = luaL_checkudata(L, 2, "widget");
|
widget_t **widget = luaL_checkudata(L, 2, "widget");
|
||||||
widget_node_t *w = p_new(widget_node_t, 1);
|
widget_node_t *w = p_new(widget_node_t, 1);
|
||||||
|
client_t *c;
|
||||||
|
|
||||||
w->widget = *widget;
|
w->widget = *widget;
|
||||||
widget_node_list_append(&(*tb)->widgets, w);
|
widget_node_list_append(&(*tb)->widgets, w);
|
||||||
widget_ref(widget);
|
widget_ref(widget);
|
||||||
|
|
||||||
/* XXX */
|
for(c = globalconf.clients; c; c = c->next)
|
||||||
// titlebar_draw(*tb);
|
if(c->titlebar == *tb)
|
||||||
|
{
|
||||||
|
titlebar_draw(c);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue