From e196826415b95e4ab5ee4edeea77f5401a4ecbcf Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Gross?= Date: Fri, 11 Sep 2009 14:51:22 +0200 Subject: [PATCH] awful.tooltip: ensure tooltip is attached to a screen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Gross Signed-off-by: Julien Danjou --- lib/awful/tooltip.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/tooltip.lua.in b/lib/awful/tooltip.lua.in index a1b03e20..1c30975a 100644 --- a/lib/awful/tooltip.lua.in +++ b/lib/awful/tooltip.lua.in @@ -89,10 +89,10 @@ end local function show(self) -- do nothing if the tooltip is already shown if self.visible then return end + -- make sure the tooltip is on the same screen as the mouse + self.wibox.screen = mouse.screen if data[self].timer then if not data[self].timer.started then - -- make sure the tooltip is on the same screen as the mouse - self.wibox.screen = mouse.screen data[self].timer_function() data[self].timer:start() end -- 2.11.4.GIT