Use naughty.widget.icon instead of imagebox

After https://github.com/awesomeWM/awesome/pull/3029, issues with
notification icons not being rendered correctly or updated are fixed,
thus we can go back to using naughty.widget.icon
This commit is contained in:
elenapan 2020-03-10 22:58:34 +02:00
parent a31b2aa26a
commit cd46aa20c1

View file

@ -22,22 +22,7 @@ naughty.connect_signal("request::display", function(n)
{
{
{
-- {
-- naughty.widget.icon,
-- bg = "#ff0000",
-- widget = wibox.container.background
-- },
-- TODO does not render properly
-- That is why we use a normal image box
-- Downside: we cannot update icon
{
forced_height = beautiful.notification_icon_size or dpi(40),
forced_width = beautiful.notification_icon_size or dpi(40),
resize = true,
image = n.icon,
id = "notification_icon",
widget = wibox.widget.imagebox
},
naughty.widget.icon,
{
{
nil,