Explorar o código

fix: #219 window mode wasn't rendering because of an issue with default background detection

Almamu %!s(int64=2) %!d(string=hai) anos
pai
achega
6c27d94115
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/WallpaperEngine/Application/CWallpaperApplication.cpp

+ 5 - 0
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 ()) {