wibox: update position correctly for titlebar
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
39f50d5b06
commit
a57b87b411
12
wibox.c
12
wibox.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue