Skip to content

Commit

Permalink
fix: #219 window mode wasn't rendering because of an issue with defau…
Browse files Browse the repository at this point in the history
…lt background detection
  • Loading branch information
Almamu committed May 21, 2024
1 parent 9712f20 commit 6c27d94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/WallpaperEngine/Application/CWallpaperApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()) {
Expand Down

0 comments on commit 6c27d94

Please # to comment.