widget: Add class-level signal forwarding.

Just like clients and other CAPI classes, it is now possible to
connect to all instance signals. There was already a couple of
`request::geometry`, but no way to forward them, so it was
de-facto broken.
This commit is contained in:
Emmanuel Lepage Vallee 2020-01-25 19:20:07 -05:00
parent 5891783ba9
commit 0c08bb4304
1 changed files with 5 additions and 0 deletions

View File

@ -388,6 +388,9 @@ local function new(args)
ret.input_passthrough = args.input_passthrough
end
-- Make sure all signals bubble up
ret:_connect_everything(wibox.emit_signal)
return ret
end
@ -409,6 +412,8 @@ object.properties(capi.drawin, {
capi.drawin.object = wibox.object
object._setup_class_signals(wibox)
return setmetatable(wibox, wibox.mt)
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80