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.
This commit is contained in:
Robert Andrew Ditthardt 2019-07-21 19:07:33 -04:00 committed by GitHub
parent 1116bc47d0
commit 0b58cf9941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -172,8 +172,8 @@ local function show(self)
if self._private.visible then return end if self._private.visible then return end
if self.timer then if self.timer then
if not self.timer.started then if not self.timer.started then
self:timer_function()
self.timer:start() self.timer:start()
self:timer_function()
end end
end end
set_geometry(self) set_geometry(self)