From 1fa23fef81ea1f8fe2dfcaf3bc597c9ad0891705 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 5 Jan 2013 20:54:38 +0100 Subject: [PATCH] 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 --- lib/awful/tooltip.lua.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/awful/tooltip.lua.in b/lib/awful/tooltip.lua.in index e7f29edee..aad65dae4 100644 --- a/lib/awful/tooltip.lua.in +++ b/lib/awful/tooltip.lua.in @@ -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