From 251673f8b23691af0fbc6b49f5c6a86b32080420 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 2 Aug 2015 19:38:26 +0200 Subject: [PATCH] tooltip: use new next_to_mouse placement This should take care of not placing the tooltip outside of the screen already, so the call to `awful.placement.no_offscreen` can be skipped. --- lib/awful/tooltip.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/awful/tooltip.lua b/lib/awful/tooltip.lua index 2f4b1248..e26326db 100644 --- a/lib/awful/tooltip.lua +++ b/lib/awful/tooltip.lua @@ -73,8 +73,7 @@ local data = setmetatable({}, { __mode = 'k' }) -- Place the tooltip on the screen. -- @tparam tooltip self A tooltip object. local function place(self) - a_placement.under_mouse(self.wibox) - a_placement.no_offscreen(self.wibox) + a_placement.next_to_mouse(self.wibox) end -- Place the tooltip under the mouse.