mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
wibox: update position correctly for titlebar
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
39f50d5b06
commit
a57b87b411
1 changed files with 9 additions and 3 deletions
10
wibox.c
10
wibox.c
|
@ -899,8 +899,16 @@ 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);
|
||||||
|
switch((*wibox)->type)
|
||||||
|
{
|
||||||
|
case WIBOX_TYPE_NORMAL:
|
||||||
wibox_position_update(*wibox);
|
wibox_position_update(*wibox);
|
||||||
break;
|
break;
|
||||||
|
case WIBOX_TYPE_TITLEBAR:
|
||||||
|
titlebar_update_geometry_floating(client_getbytitlebar(*wibox));
|
||||||
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue