potential fix #2: set dummy child for all background widgets

This commit is contained in:
BZ 2020-12-08 08:27:00 +01:00
parent d074a5d73f
commit 140b0cde08
1 changed files with 7 additions and 1 deletions

View File

@ -517,7 +517,12 @@ local function new(config)
local button_widgets = {} local button_widgets = {}
local border_bg = wibox.widget.base.make_widget_declarative( 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) border_bg:connect_signal("button::press", function(_, _, _, button)
handle_button_press(c, button) handle_button_press(c, button)
@ -637,6 +642,7 @@ local function new(config)
local button_widget = wibox.widget.base.make_widget_declarative( local button_widget = wibox.widget.base.make_widget_declarative(
{ {
{widget = wibox.container.margin},
id = b.name, id = b.name,
forced_width = ori(pos) == "h" and b.button_size or nil, forced_width = ori(pos) == "h" and b.button_size or nil,
forced_height = ori(pos) == "v" and b.button_size or nil, forced_height = ori(pos) == "v" and b.button_size or nil,