wibox: Do not overwrite `gears.object` methods.
The next commit will all class level signals. The current design is used in widgets, but is a bad fit for wiboxes. They should behave more like client. In v5, setting methods on `wibox` directly will be deprecated. `wibox.object` is already supported. I don't think anyone really do that anyway and isn't documented.
This commit is contained in:
parent
8a877bd429
commit
5891783ba9
|
@ -310,8 +310,9 @@ local function new(args)
|
|||
ret._drawable:_inform_visible(w.visible)
|
||||
end)
|
||||
|
||||
--TODO v5 deprecate this and use `wibox.object`.
|
||||
for k, v in pairs(wibox) do
|
||||
if type(v) == "function" then
|
||||
if (not rawget(ret, k)) and type(v) == "function" then
|
||||
ret[k] = v
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue