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.
This commit is contained in:
Daniel Hahler 2015-08-02 19:38:26 +02:00
parent 9803af1b1f
commit 251673f8b2
1 changed files with 1 additions and 2 deletions

View File

@ -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.