ソースを参照

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

Almamu 2 年 前
親
コミット
6c27d94115
1 ファイル変更、5 行追加、0 行削除
  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 ()) {