naughty: Use connect_for_each_screen()
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
94dede7511
commit
3f40183177
|
@ -143,8 +143,8 @@ local suspended = false
|
||||||
-- @field id Unique notification id based on a counter
|
-- @field id Unique notification id based on a counter
|
||||||
-- @table notifications
|
-- @table notifications
|
||||||
naughty.notifications = { suspended = { } }
|
naughty.notifications = { suspended = { } }
|
||||||
for s in capi.screen do
|
require("gears.screen").connect_for_each_screen(function(s)
|
||||||
naughty.notifications[get_screen(s)] = {
|
naughty.notifications[s] = {
|
||||||
top_left = {},
|
top_left = {},
|
||||||
top_middle = {},
|
top_middle = {},
|
||||||
top_right = {},
|
top_right = {},
|
||||||
|
@ -152,7 +152,7 @@ for s in capi.screen do
|
||||||
bottom_middle = {},
|
bottom_middle = {},
|
||||||
bottom_right = {},
|
bottom_right = {},
|
||||||
}
|
}
|
||||||
end
|
end)
|
||||||
|
|
||||||
--- Notification state
|
--- Notification state
|
||||||
function naughty.is_suspended()
|
function naughty.is_suspended()
|
||||||
|
|
Loading…
Reference in New Issue