make wallpaper module 4.3 compatible (#70)
This commit is contained in:
parent
9a88eb1b2f
commit
9941797638
|
@ -24,6 +24,7 @@
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
local awful = require("awful")
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
local helpers = require(tostring(...):match(".*bling") .. ".helpers")
|
local helpers = require(tostring(...):match(".*bling") .. ".helpers")
|
||||||
|
@ -278,9 +279,12 @@ function setup(args)
|
||||||
callback = function() set_wallpaper() end
|
callback = function() set_wallpaper() end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
if awesome.version == "v4.3" then
|
||||||
|
awful.screen.connect_for_each_screen(set_wallpaper)
|
||||||
|
else
|
||||||
screen.connect_signal("request::wallpaper", set_wallpaper)
|
screen.connect_signal("request::wallpaper", set_wallpaper)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue