wibox: Add the wibox reference to `find_widgets`

This is necessary to compute the widget real position on screen
because it's the only way to know the border_width offset.
This commit is contained in:
Emmanuel Lepage Vallee 2018-01-10 07:49:35 -05:00
parent d8a7782bf4
commit 7d6f52c4dc
1 changed files with 4 additions and 0 deletions

View File

@ -253,6 +253,10 @@ local function new(args)
ret._drawable = wibox.drawable(w.drawable, { wibox = ret },
"wibox drawable (" .. object.modulename(3) .. ")")
function ret._drawable.get_wibox()
return ret
end
ret._drawable:_inform_visible(w.visible)
w:connect_signal("property::visible", function()
ret._drawable:_inform_visible(w.visible)