mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 05:46:48 +08:00
fix: #219 window mode wasn't rendering because of an issue with default background detection
This commit is contained in:
parent
9712f20140
commit
6c27d94115
@ -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 ()) {
|
||||
|
Loading…
Reference in New Issue
Block a user