diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-21 00:01:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-05-21 00:02:37 +0200 |
commit | 5e99f596e005fcc1a1b5727fea5453cabed179c8 (patch) | |
tree | 2c6d04eb94daf3b12d9a38138762d46ebb40f446 | |
parent | 746687800ff205b22316157c86c8b816307d3aa7 (diff) |
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
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |