ruled.notification: Do not require `naughty`.
Since it is used only one, use require() directly. This allows to require it from `beautiful` without a circular dependency. In turn, this allows to set colors using the rules rather than adding an endless amount of theme variables.
This commit is contained in:
parent
cab352781d
commit
30df6055b7
|
@ -27,7 +27,6 @@ local capi = {screen = screen, client = client, awesome = awesome}
|
|||
local matcher = require("gears.matcher")
|
||||
local gtable = require("gears.table")
|
||||
local gobject = require("gears.object")
|
||||
local naughty = require("naughty")
|
||||
|
||||
--- The notification is attached to the focused client.
|
||||
--
|
||||
|
@ -206,7 +205,7 @@ capi.awesome.connect_signal("startup", function()
|
|||
module.emit_signal("request::rules")
|
||||
|
||||
-- This will disable the legacy preset support.
|
||||
naughty.connect_signal("request::preset", function(n)
|
||||
require("naughty").connect_signal("request::preset", function(n)
|
||||
module.apply(n)
|
||||
end)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue