From 5e99f596e005fcc1a1b5727fea5453cabed179c8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 21 May 2018 00:01:24 +0200 Subject: Reduce sleep when window is not focused Delay when typing after being unfocused is now smaller. Increase sleep again when chatbar focusing has been implemented because currently the chatbar is always focused --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index cf916e2..4a38aa9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -712,7 +712,7 @@ int main(int argc, char **argv) if(lastFocusedTimer.getElapsedTime().asMilliseconds() > 3000) { - this_thread::sleep_for(chrono::seconds(1)); + this_thread::sleep_for(chrono::milliseconds(250)); continue; } -- cgit v1.2.3