Reduce out-of-focus timer interval to 2 seconds so we still have
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 28 Apr 2001 18:23:58 +0000 (18:23 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 28 Apr 2001 18:23:58 +0000 (18:23 +0000)
some control over keepalives when not in the foreground.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1093 cda61777-01e9-0310-a592-d414129be87e

window.c

index 59dbbe0..1805088 100644 (file)
--- a/window.c
+++ b/window.c
@@ -606,7 +606,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
               /* Hmm, term_update didn't want to do an update too soon ... */
               timer_id = SetTimer(hwnd, 1, 50, NULL);
            else if (!has_focus)
-              timer_id = SetTimer(hwnd, 1, 59500, NULL);
+              timer_id = SetTimer(hwnd, 1, 2000, NULL);
            else
               timer_id = SetTimer(hwnd, 1, 100, NULL);
            long_timer = 1;