diff --git a/lib/wibox/init.lua b/lib/wibox/init.lua index 46f72d49..a5021d37 100644 --- a/lib/wibox/init.lua +++ b/lib/wibox/init.lua @@ -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