tooltip: re-add `no_offscreen` back to `place`

The tooltip might be partly outside of the screen, and especially the
workarea, e.g. for tooltips on the tasklist.

Calling `awful.placement.no_offscreen` makes sure that it is fully
inside, and will even restrict it to the workarea, not only to the screen.

Closes https://github.com/awesomeWM/awesome/pull/409.
This commit is contained in:
Daniel Hahler 2015-08-14 03:00:43 +02:00
parent b33cffd851
commit b600b143b6
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ local data = setmetatable({}, { __mode = 'k' })
-- @tparam tooltip self A tooltip object. -- @tparam tooltip self A tooltip object.
local function place(self) local function place(self)
a_placement.next_to_mouse(self.wibox) a_placement.next_to_mouse(self.wibox)
a_placement.no_offscreen(self.wibox)
end end
-- Place the tooltip under the mouse. -- Place the tooltip under the mouse.