diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-05 23:38:01 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-05 23:38:01 -0500 |
commit | 408f22444f371c13ef48f677de855505c9a3d741 (patch) | |
tree | 92d6d13aae3b7b4b24472a3fac946f47e74faebb /kcontrol/background/bgrender.cpp | |
parent | 699217f5ac7e8ccf5a023fb13b3a26d38c1d847b (diff) | |
download | tdebase-408f22444f371c13ef48f677de855505c9a3d741.tar.gz tdebase-408f22444f371c13ef48f677de855505c9a3d741.zip |
Allow desktop settings to be changed on a single-screen system when a multi-screen configuration was previously set
This resolves Bug 1684
Diffstat (limited to 'kcontrol/background/bgrender.cpp')
-rw-r--r-- | kcontrol/background/bgrender.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kcontrol/background/bgrender.cpp b/kcontrol/background/bgrender.cpp index 5e9e4b82f..d8cc53c9a 100644 --- a/kcontrol/background/bgrender.cpp +++ b/kcontrol/background/bgrender.cpp @@ -1208,6 +1208,10 @@ void KVirtualBGRenderer::initRenderers() m_bCommonScreen = m_pConfig->readBoolEntry("CommonScreen", _defCommonScreen); m_numRenderers = m_bDrawBackgroundPerScreen ? TDEApplication::desktop()->numScreens() : 1; + if (m_numRenderers < 2) { + // Only one screen is currently available; deactivate per-screen rendering but do not overwrite multi-screen settings + m_bDrawBackgroundPerScreen = false; + } m_bFinished.resize(m_numRenderers); m_bFinished.fill(false); |