titlebar: call property hook on visible, not need_arrange

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-05-10 16:46:08 +02:00
parent a0fa3cf548
commit 38400cd026
2 changed files with 3 additions and 2 deletions

View file

@ -115,7 +115,8 @@ hooks.property.register(function (obj, prop)
end end
end end
elseif objtype == "wibox" then elseif objtype == "wibox" then
if prop == "screen" then if prop == "screen"
or prop == "visible" then
on_arrange(obj.screen) on_arrange(obj.screen)
end end
end end

View file

@ -304,7 +304,7 @@ titlebar_set_visible(wibox_t *t, bool visible)
else else
titlebar_ban(t); titlebar_ban(t);
t->screen->need_arrange = true; hook_property(wibox, t, "visible");
client_stack(); client_stack();
} }
} }