wibox: update position correctly for titlebar

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

12
wibox.c
View File

@ -899,7 +899,15 @@ luaA_wibox_newindex(lua_State *L)
case A_TK_ALIGN:
buf = luaL_checklstring(L, 3, &len);
(*wibox)->align = draw_align_fromstr(buf, len);
wibox_position_update(*wibox);
switch((*wibox)->type)
{
case WIBOX_TYPE_NORMAL:
wibox_position_update(*wibox);
break;
case WIBOX_TYPE_TITLEBAR:
titlebar_update_geometry_floating(client_getbytitlebar(*wibox));
break;
}
break;
case A_TK_POSITION:
switch((*wibox)->type)
@ -972,8 +980,6 @@ luaA_wibox_newindex(lua_State *L)
break;
}
break;
case A_TK_GEOMETRY:
break;
default:
switch((*wibox)->type)
{