From fde67d8665e17c26f7904c6020922f4786085f42 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 28 Apr 2001 18:23:58 +0000 Subject: [PATCH 1/1] Reduce out-of-focus timer interval to 2 seconds so we still have 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window.c b/window.c index 59dbbe09..1805088a 100644 --- 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; -- 2.11.0