From a57b87b411c219be4aedeb0d62f6afeca5743d6f Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 12 Oct 2008 17:15:01 +0200 Subject: [PATCH] wibox: update position correctly for titlebar Signed-off-by: Julien Danjou --- wibox.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/wibox.c b/wibox.c index 11e5c8a3..0d2a6652 100644 --- a/wibox.c +++ b/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) {