From 0b58cf9941ba2573075df4edddcebfe57d4c9491 Mon Sep 17 00:00:00 2001 From: Robert Andrew Ditthardt Date: Sun, 21 Jul 2019 19:07:33 -0400 Subject: [PATCH] awful.tooltip:show() - swap timer.started and timer_function call This is needed because if async code is run inside of a tooltip timer func the started property may not still be false. The current version causes random spurious timer already started errors. --- lib/awful/tooltip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/tooltip.lua b/lib/awful/tooltip.lua index 44363d3d8..190e7768b 100644 --- a/lib/awful/tooltip.lua +++ b/lib/awful/tooltip.lua @@ -172,8 +172,8 @@ local function show(self) if self._private.visible then return end if self.timer then if not self.timer.started then - self:timer_function() self.timer:start() + self:timer_function() end end set_geometry(self)