summaryrefslogtreecommitdiffstats
path: root/kdesktop
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-11-17 14:31:46 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-11-17 14:31:46 -0600
commita4f1031a6d9555e614f1c3a24d2db18b0acd734f (patch)
treeb80a81f21a1e089c560915f852066235a7529dd3 /kdesktop
parentd8e76211d98c87c319f9b371ab8923265a683e97 (diff)
downloadtdebase-a4f1031a6d9555e614f1c3a24d2db18b0acd734f.tar.gz
tdebase-a4f1031a6d9555e614f1c3a24d2db18b0acd734f.zip
Fix improper desktop wallpaper export causing fake transparency dependent application failure
Diffstat (limited to 'kdesktop')
-rw-r--r--kdesktop/bgmanager.cc20
1 files changed, 11 insertions, 9 deletions
diff --git a/kdesktop/bgmanager.cc b/kdesktop/bgmanager.cc
index adb25d216..7c641dd9d 100644
--- a/kdesktop/bgmanager.cc
+++ b/kdesktop/bgmanager.cc
@@ -399,8 +399,9 @@ void KBackgroundManager::slotChangeDesktop(int desk)
// Do we have this or an identical config already running?
for (unsigned i=0; i<m_Renderer.size(); i++)
{
- if (((m_Renderer[i]->hash() == m_Renderer[edesk]->hash()) && (m_Renderer[i]->isActive())) && (desk != 0))
+ if (((m_Renderer[i]->hash() == m_Renderer[edesk]->hash()) && (m_Renderer[i]->isActive())) && (desk != 0)) {
return;
+ }
}
renderBackground(edesk);
@@ -665,7 +666,7 @@ void KBackgroundManager::slotImageDone(int desk)
TQApplication::desktop()->screen()->backgroundPixmap() );
}
- //TODO Find a way to discover if CrossFade effect needs to run
+ //TODO Find a way to discover if CrossFade effect needs to run
if (mOldScreen){
crossInit = true;
m_crossTimer->start(70);
@@ -685,17 +686,18 @@ void KBackgroundManager::slotImageDone(int desk)
do_cleanup = false;
}
}
- if (m_bExport || !m_bCommon)
+ if (m_bExport || !m_bCommon) {
addCache(pm, r->hash(), desk);
- else
+ }
+ else {
delete pm;
+ }
- if (current)
- //exportBackground(desk, realDesktop());
- exportBackground(desk, desk);
+ if (current) {
+ exportBackground(desk, realDesktop());
+ }
- if( do_cleanup )
- {
+ if( do_cleanup ) {
r->saveCacheFile();
r->cleanup();
}