From 6c27d9411585d75187042ce6918ddefe3a6e2656 Mon Sep 17 00:00:00 2001 From: Almamu Date: Tue, 21 May 2024 14:20:08 +0200 Subject: [PATCH] fix: #219 window mode wasn't rendering because of an issue with default background detection --- src/WallpaperEngine/Application/CWallpaperApplication.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/WallpaperEngine/Application/CWallpaperApplication.cpp b/src/WallpaperEngine/Application/CWallpaperApplication.cpp index bae5ba8..9858d47 100644 --- a/src/WallpaperEngine/Application/CWallpaperApplication.cpp +++ b/src/WallpaperEngine/Application/CWallpaperApplication.cpp @@ -167,6 +167,11 @@ void CWallpaperApplication::setupContainer (CCombinedContainer& container, const } void CWallpaperApplication::loadBackgrounds () { + if (this->m_context.settings.render.mode == CApplicationContext::NORMAL_WINDOW || this->m_context.settings.render.mode == CApplicationContext::EXPLICIT_WINDOW) { + this->m_backgrounds ["default"] = this->loadBackground(this->m_context.settings.general.defaultBackground); + return; + } + for (const auto& [screen, path] : this->m_context.settings.general.screenBackgrounds) { // screens with no screen should use the default if (path.empty ()) {