titlebar: Expose some previously private properties.

I am not happy with this API in general, I keep it undocumented
for now. In a perfect world, the whole client frame would be
a hierarchy.
This commit is contained in:
Emmanuel Lepage Vallee 2016-10-09 01:27:39 -04:00
parent 45135b28b1
commit cfaf7d8fe8
2 changed files with 4 additions and 1 deletions

View File

@ -513,6 +513,9 @@ local function new(c, args)
-- Handle declarative/recursive widget container
ret.setup = base.widget.setup
c._private = c._private or {}
c._private.titlebars = bars
return ret
end

View File

@ -94,7 +94,7 @@ local function client_widget(c, col, label)
local l = wibox.layout.align.vertical()
l.fill_space = true
local tbs = c.titlebars or {}
local tbs = c._private and c._private.titlebars or {}
local map = {
top = "set_first",