2016-03-26 18:33:45 +01:00
|
|
|
---------------------------------------------------------------------------
|
|
|
|
-- @author Uli Schlachter
|
|
|
|
-- @copyright 2016 Uli Schlachter
|
|
|
|
-- @release @AWESOME_VERSION@
|
|
|
|
-- @classmod gears.screen
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
2016-04-05 06:01:31 +02:00
|
|
|
local ascreen = require("awful.screen")
|
|
|
|
local util = require("awful.util")
|
2016-03-26 18:33:45 +01:00
|
|
|
|
|
|
|
local module = {}
|
|
|
|
|
|
|
|
--- Call a function for each existing and created-in-the-future screen.
|
|
|
|
-- @tparam function func The function to call.
|
|
|
|
function module.connect_for_each_screen(func)
|
2016-04-05 06:01:31 +02:00
|
|
|
util.deprecate("Use awful.screen.connect_for_each_screen")
|
|
|
|
ascreen.connect_for_each_screen(func)
|
2016-03-26 18:33:45 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
--- Undo the effect of connect_for_each_screen.
|
|
|
|
-- @tparam function func The function that should no longer be called.
|
|
|
|
function module.disconnect_for_each_screen(func)
|
2016-04-05 06:01:31 +02:00
|
|
|
util.deprecate("Use awful.screen.disconnect_for_each_screen")
|
|
|
|
ascreen.disconnect_for_each_screen(func)
|
2016-03-26 18:33:45 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
return module
|
|
|
|
|
|
|
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|