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:
parent
615186f30e
commit
1fa23fef81
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue