tooltip: force place() if tooltip is not visible

Commit 6c5d0ca9 introduced a side effect. If tooltip text isn't changed
place() function is not called. To prevent multiple place() set_geometry
calls that function when tooltip is not visible (before it appears to the
user).

Signed-off-by: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Sébastien Gross 2009-12-03 13:39:44 +01:00 committed by Julien Danjou
parent 39a0fba7a8
commit ea4967fef4
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ local function set_geometry(self)
self.wibox:geometry(n_s) self.wibox:geometry(n_s)
place(self) place(self)
end end
if not self.wibox.visible then
place(self)
end
end end
-- Show a tooltip. -- Show a tooltip.