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

12
wibox.c
View file

@ -899,7 +899,15 @@ luaA_wibox_newindex(lua_State *L)
case A_TK_ALIGN: case A_TK_ALIGN:
buf = luaL_checklstring(L, 3, &len); buf = luaL_checklstring(L, 3, &len);
(*wibox)->align = draw_align_fromstr(buf, 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; break;
case A_TK_POSITION: case A_TK_POSITION:
switch((*wibox)->type) switch((*wibox)->type)
@ -972,8 +980,6 @@ luaA_wibox_newindex(lua_State *L)
break; break;
} }
break; break;
case A_TK_GEOMETRY:
break;
default: default:
switch((*wibox)->type) switch((*wibox)->type)
{ {