From a8425df036f6732c3874e3d4286227c4e85f142d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gross?= Date: Thu, 3 Dec 2009 13:39:44 +0100 Subject: [PATCH] tooltip: force place() if tooltip is not visible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Julien Danjou --- lib/awful/tooltip.lua.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/awful/tooltip.lua.in b/lib/awful/tooltip.lua.in index 44866192..f2828047 100644 --- a/lib/awful/tooltip.lua.in +++ b/lib/awful/tooltip.lua.in @@ -82,6 +82,9 @@ local function set_geometry(self) self.wibox:geometry(n_s) place(self) end + if not self.wibox.visible then + place(self) + end end -- Show a tooltip.