Fix default of hidden previews to be for shown windows.

svn path=/trunk/KDE/kdebase/workspace/; revision=866676
This commit is contained in:
Luboš Luňák 2008-10-01 17:01:47 +00:00
parent 0ca1edbfe8
commit 79c05cde7d
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ void KWinAdvancedCompositingOptions::load()
KConfigGroup config(mKWinConfig, "Compositing");
QString backend = config.readEntry("Backend", "OpenGL");
ui.compositingType->setCurrentIndex((backend == "XRender") ? 1 : 0);
int hps = config.readEntry("HiddenPreviews", 0);
int hps = config.readEntry("HiddenPreviews", 3);
if( hps == 1 ) // always
ui.windowThumbnails->setCurrentIndex( 0 );
else if( hps == 0 ) // never

View file

@ -227,7 +227,7 @@ void Options::reloadCompositingSettings(const CompositingPrefs& prefs)
xrenderSmoothScale = config.readEntry("XRenderSmoothScale", false );
hiddenPreviews = HiddenPreviewsShown;
int hps = config.readEntry( "HiddenPreviews", int(HiddenPreviewsShown) );
int hps = config.readEntry( "HiddenPreviews", 3 );
if( hps == 0 )
hiddenPreviews = HiddenPreviewsNever;
else if( hps == 3 )