awful.tooltip: ensure tooltip is attached to a screen

Signed-off-by: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Sébastien Gross 2009-09-11 14:51:22 +02:00 committed by Julien Danjou
parent 4e35145ee3
commit e196826415
1 changed files with 2 additions and 2 deletions

View File

@ -89,10 +89,10 @@ end
local function show(self) local function show(self)
-- do nothing if the tooltip is already shown -- do nothing if the tooltip is already shown
if self.visible then return end if self.visible then return end
if data[self].timer then
if not data[self].timer.started then
-- make sure the tooltip is on the same screen as the mouse -- make sure the tooltip is on the same screen as the mouse
self.wibox.screen = mouse.screen self.wibox.screen = mouse.screen
if data[self].timer then
if not data[self].timer.started then
data[self].timer_function() data[self].timer_function()
data[self].timer:start() data[self].timer:start()
end end