awful.tooltip: Don't place tooltips when text changes

The tooltip is now only placed when it is made visible, not while it is
invisible.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2013-01-05 20:54:38 +01:00
parent 615186f30e
commit 1fa23fef81
1 changed files with 1 additions and 3 deletions

View File

@ -82,9 +82,6 @@ local function set_geometry(self)
if my_geo.width ~= n_w or my_geo.height ~= n_h then
self.wibox:geometry({ width = n_w, height = n_h })
end
if not self.wibox.visible then
place(self)
end
end
-- Show a tooltip.
@ -99,6 +96,7 @@ local function show(self)
end
end
set_geometry(self)
place(self)
self.wibox.visible = true
self.visible = true
end