make wallpaper module 4.3 compatible (#70)

This commit is contained in:
Nooo37 2021-08-03 19:56:37 +02:00 committed by GitHub
parent 9a88eb1b2f
commit 9941797638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -24,6 +24,7 @@
---------------------------------------------------------------------------
local awful = require("awful")
local beautiful = require("beautiful")
local gears = require("gears")
local helpers = require(tostring(...):match(".*bling") .. ".helpers")
@ -278,8 +279,11 @@ function setup(args)
callback = function() set_wallpaper() end
}
end
screen.connect_signal("request::wallpaper", set_wallpaper)
if awesome.version == "v4.3" then
awful.screen.connect_for_each_screen(set_wallpaper)
else
screen.connect_signal("request::wallpaper", set_wallpaper)
end
end