Bah, do this properly. Avoid detecting compositing prefs only
if compositing is explicitly disabled. This allows disabling it if there's a problem, and in that case the prefs don't matter anyway, but it doesn't prevent detecting details about compositing when it might be used. svn path=/trunk/KDE/kdebase/workspace/; revision=1058282
This commit is contained in:
parent
7cef1eadd5
commit
bbd4deffe8
1 changed files with 8 additions and 9 deletions
17
options.cpp
17
options.cpp
|
@ -227,17 +227,16 @@ void Options::reloadCompositingSettings()
|
|||
KSharedConfig::Ptr _config = KGlobal::config();
|
||||
KConfigGroup config(_config, "Compositing");
|
||||
|
||||
// do not even detect compositing preferences if explicitly disabled
|
||||
if( config.hasKey( "Enabled" ) && !config.readEntry( "Enabled", true ))
|
||||
{
|
||||
useCompositing = false;
|
||||
return;
|
||||
}
|
||||
// Compositing settings
|
||||
CompositingPrefs prefs;
|
||||
if( !config.hasKey( "Enabled" ))
|
||||
{
|
||||
prefs.detect();
|
||||
useCompositing = prefs.recommendCompositing();
|
||||
}
|
||||
else
|
||||
useCompositing = config.readEntry( "Enabled" , true );
|
||||
if (!useCompositing)
|
||||
return;
|
||||
prefs.detect();
|
||||
useCompositing = config.readEntry( "Enabled" , prefs.recommendCompositing());
|
||||
|
||||
QString compositingBackend = config.readEntry("Backend", "OpenGL");
|
||||
if( compositingBackend == "XRender" )
|
||||
|
|
Loading…
Reference in a new issue