mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
titlebar: call property hook on visible, not need_arrange
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a0fa3cf548
commit
38400cd026
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue