mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-09 02:17:24 +08:00
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:
parent
a31b2aa26a
commit
cd46aa20c1
1 changed files with 1 additions and 16 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue