From 51ce05e445cd5713e9cc54a7b03dafc9a13372fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 9 Jan 2013 09:14:35 +0100 Subject: [PATCH] Use a more sane default for delay focus and autoraise in FFM At the same time ensuring that KCM and KWin::Options use the same value. Should be ported to KConfigXT some day. REVIEW: 108288 --- kcmkwin/kwinoptions/windows.cpp | 2 +- options.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kcmkwin/kwinoptions/windows.cpp b/kcmkwin/kwinoptions/windows.cpp index 0c8d450cf4..3644de637e 100644 --- a/kcmkwin/kwinoptions/windows.cpp +++ b/kcmkwin/kwinoptions/windows.cpp @@ -241,7 +241,7 @@ void KFocusConfig::load(void) int k = cg.readEntry(KWIN_AUTORAISE_INTERVAL, 750); setAutoRaiseInterval(k); - k = cg.readEntry(KWIN_DELAYFOCUS_INTERVAL, 750); + k = cg.readEntry(KWIN_DELAYFOCUS_INTERVAL, 300); setDelayFocusInterval(k); setAutoRaise(cg.readEntry(KWIN_AUTORAISE, false)); diff --git a/options.h b/options.h index 654b765021..81cb537979 100644 --- a/options.h +++ b/options.h @@ -673,10 +673,10 @@ public: return false; } static int defaultAutoRaiseInterval() { - return 0; + return 750; } static int defaultDelayFocusInterval() { - return 0; + return 300; } static bool defaultShadeHover() { return false;