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:
parent
45135b28b1
commit
cfaf7d8fe8
|
@ -513,6 +513,9 @@ local function new(c, args)
|
||||||
-- Handle declarative/recursive widget container
|
-- Handle declarative/recursive widget container
|
||||||
ret.setup = base.widget.setup
|
ret.setup = base.widget.setup
|
||||||
|
|
||||||
|
c._private = c._private or {}
|
||||||
|
c._private.titlebars = bars
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ local function client_widget(c, col, label)
|
||||||
local l = wibox.layout.align.vertical()
|
local l = wibox.layout.align.vertical()
|
||||||
l.fill_space = true
|
l.fill_space = true
|
||||||
|
|
||||||
local tbs = c.titlebars or {}
|
local tbs = c._private and c._private.titlebars or {}
|
||||||
|
|
||||||
local map = {
|
local map = {
|
||||||
top = "set_first",
|
top = "set_first",
|
||||||
|
|
Loading…
Reference in New Issue