From 994179763828edc43ec24efaa07fc49ef8a8648a Mon Sep 17 00:00:00 2001 From: Nooo37 <70270606+Nooo37@users.noreply.github.com> Date: Tue, 3 Aug 2021 19:56:37 +0200 Subject: [PATCH] make wallpaper module 4.3 compatible (#70) --- module/wallpaper.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/module/wallpaper.lua b/module/wallpaper.lua index 69a8147..1ad95c5 100644 --- a/module/wallpaper.lua +++ b/module/wallpaper.lua @@ -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