From f46559e239f52cdf6f957b65b7feaa5b2f65c288 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 10 May 2009 16:43:36 +0200 Subject: [PATCH] titlebar: execute property hook rather than setting need_arrange Signed-off-by: Julien Danjou --- lib/awful/layout/init.lua.in | 3 ++- titlebar.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/awful/layout/init.lua.in b/lib/awful/layout/init.lua.in index b086b7656..22637af7d 100644 --- a/lib/awful/layout/init.lua.in +++ b/lib/awful/layout/init.lua.in @@ -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 diff --git a/titlebar.c b/titlebar.c index cb495888e..7b4a777fd 100644 --- a/titlebar.c +++ b/titlebar.c @@ -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(); }