From 9dfbf311cb81388716377743ceb3447b90012504 Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Sun, 5 Jul 2009 04:36:26 +0000 Subject: [PATCH] Having the delay for showing the Switcher window based on the keyboard delay seemed odd to me. The default settings made it feel too slow in coming up, and even the fastest settings still felt awkward. So after some trial and error I came up with a reasonable default that feels nice to me. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31407 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/deskbar/Switcher.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/apps/deskbar/Switcher.cpp b/src/apps/deskbar/Switcher.cpp index f9ab8c6c85..288ccf0121 100644 --- a/src/apps/deskbar/Switcher.cpp +++ b/src/apps/deskbar/Switcher.cpp @@ -658,14 +658,10 @@ TSwitchManager::_SortApps() void TSwitchManager::MainEntry(BMessage* message) { - bigtime_t keyRepeatRate; - get_key_repeat_delay(&keyRepeatRate); - - if (keyRepeatRate < 200000) - keyRepeatRate = 200000; - bigtime_t now = system_time(); - bigtime_t timeout = now + keyRepeatRate; + bigtime_t timeout = now + 180000; + // The delay above was arrived at by trial and error and + // has a good "feel" app_info appInfo; be_roster->GetActiveAppInfo(&appInfo); @@ -702,7 +698,8 @@ TSwitchManager::MainEntry(BMessage* message) QuickSwitch(message); return; } - snooze(50000); + snooze(20000); + // Must be a multiple of the delay used above } Process((modifierKeys & B_SHIFT_KEY) == 0,