From 140b0cde080d71b8f72735aa8db3f6f33c6f170e Mon Sep 17 00:00:00 2001 From: BZ Date: Tue, 8 Dec 2020 08:27:00 +0100 Subject: [PATCH] potential fix #2: set dummy child for all background widgets --- init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 350c4a8..057dfc9 100644 --- a/init.lua +++ b/init.lua @@ -517,7 +517,12 @@ local function new(config) local button_widgets = {} local border_bg = wibox.widget.base.make_widget_declarative( - {id = "border_bg", bg = color_normal, widget = wibox.container.background}) + { + {widget = wibox.container.margin}, + id = "border_bg", + bg = color_normal, + widget = wibox.container.background + }) border_bg:connect_signal("button::press", function(_, _, _, button) handle_button_press(c, button) @@ -637,6 +642,7 @@ local function new(config) local button_widget = wibox.widget.base.make_widget_declarative( { + {widget = wibox.container.margin}, id = b.name, forced_width = ori(pos) == "h" and b.button_size or nil, forced_height = ori(pos) == "v" and b.button_size or nil,