From 79c05cde7d9970913ac7cecc574d13f0ecfc22f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 1 Oct 2008 17:01:47 +0000 Subject: [PATCH] Fix default of hidden previews to be for shown windows. svn path=/trunk/KDE/kdebase/workspace/; revision=866676 --- kcmkwin/kwincompositing/advanced.cpp | 2 +- options.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kcmkwin/kwincompositing/advanced.cpp b/kcmkwin/kwincompositing/advanced.cpp index ea53093eb9..a70f68e11a 100644 --- a/kcmkwin/kwincompositing/advanced.cpp +++ b/kcmkwin/kwincompositing/advanced.cpp @@ -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 diff --git a/options.cpp b/options.cpp index d6b71183eb..8a105be038 100644 --- a/options.cpp +++ b/options.cpp @@ -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 )