titlebar: execute property hook rather than setting need_arrange

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-05-10 16:43:36 +02:00
parent dfc01b2599
commit f46559e239
2 changed files with 4 additions and 3 deletions

View File

@ -104,7 +104,8 @@ hooks.property.register(function (obj, prop)
or prop == "maximized_horizontal"
or prop == "maximized_vertical"
or prop == "border_width"
or prop == "hide" then
or prop == "hide"
or prop == "titlebar" then
on_arrange(obj.screen)
elseif prop == "screen" then
-- If prop is screen, we do not know what was the previous screen, so

View File

@ -223,7 +223,7 @@ titlebar_client_detach(client_t *c)
wibox_unref(globalconf.L, c->titlebar);
c->titlebar = NULL;
client_need_arrange(c);
hook_property(client, c, "titlebar");
client_stack();
}
}
@ -286,7 +286,7 @@ titlebar_client_attach(client_t *c)
xcb_map_window(globalconf.connection, t->sw.window);
client_need_arrange(c);
hook_property(client, c, "titlebar");
client_stack();
}