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:
parent
39a0fba7a8
commit
ea4967fef4
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue