diff --git a/lib/naughty/layout/legacy.lua b/lib/naughty/layout/legacy.lua index ab8d38420..a1999caa4 100644 --- a/lib/naughty/layout/legacy.lua +++ b/lib/naughty/layout/legacy.lua @@ -62,6 +62,12 @@ screen.connect_for_each_screen(function(s) } end) +capi.screen.connect_signal("removed", function(s) + timer.delayed_call(function() + current_notifications[s] = nil + end) +end) + --- Sum heights of notifications at position -- -- @param s Screen to use