set icons delayed to avoid race conditions

This commit is contained in:
BZ 2020-06-18 15:55:47 +02:00
parent 10d2c9a815
commit e810596ea9
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ local function setup(config)
client.connect_signal("manage", function(c)
-- set icon based on c.class
set_icon(c, icons[c.class])
awful.spawn.easy_async_with_shell("sleep " .. set_delay, function()
set_icon(c, icons[c.class])
end)
if len(dynamic_icons) == 0 then
-- user has not defined any dynamic_icons; exit