From 0c08bb430454b93f065e4a214ce9b686bab65bc5 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 25 Jan 2020 19:20:07 -0500 Subject: [PATCH] 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. --- lib/wibox/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/wibox/init.lua b/lib/wibox/init.lua index a5021d37..78285553 100644 --- a/lib/wibox/init.lua +++ b/lib/wibox/init.lua @@ -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