From 3f4018317738acb75ddace4161caa3591f38c617 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 26 Mar 2016 18:36:04 +0100 Subject: [PATCH] naughty: Use connect_for_each_screen() Signed-off-by: Uli Schlachter --- lib/naughty/core.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/naughty/core.lua b/lib/naughty/core.lua index 18aa9629f..c7b3fb085 100644 --- a/lib/naughty/core.lua +++ b/lib/naughty/core.lua @@ -143,8 +143,8 @@ local suspended = false -- @field id Unique notification id based on a counter -- @table notifications naughty.notifications = { suspended = { } } -for s in capi.screen do - naughty.notifications[get_screen(s)] = { +require("gears.screen").connect_for_each_screen(function(s) + naughty.notifications[s] = { top_left = {}, top_middle = {}, top_right = {}, @@ -152,7 +152,7 @@ for s in capi.screen do bottom_middle = {}, bottom_right = {}, } -end +end) --- Notification state function naughty.is_suspended()