mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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:
parent
4e35145ee3
commit
e196826415
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue