From 38400cd026734b33d7fbee04bbb472cd7cf0c271 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 10 May 2009 16:46:08 +0200 Subject: [PATCH] titlebar: call property hook on visible, not need_arrange Signed-off-by: Julien Danjou --- lib/awful/layout/init.lua.in | 3 ++- titlebar.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/awful/layout/init.lua.in b/lib/awful/layout/init.lua.in index 22637af7d..a601a9e6c 100644 --- a/lib/awful/layout/init.lua.in +++ b/lib/awful/layout/init.lua.in @@ -115,7 +115,8 @@ hooks.property.register(function (obj, prop) end end elseif objtype == "wibox" then - if prop == "screen" then + if prop == "screen" + or prop == "visible" then on_arrange(obj.screen) end end diff --git a/titlebar.c b/titlebar.c index 0d5f475bc..ac47bea54 100644 --- a/titlebar.c +++ b/titlebar.c @@ -304,7 +304,7 @@ titlebar_set_visible(wibox_t *t, bool visible) else titlebar_ban(t); - t->screen->need_arrange = true; + hook_property(wibox, t, "visible"); client_stack(); } }