From: simon Date: Sat, 28 Apr 2001 18:23:58 +0000 (+0000) Subject: Reduce out-of-focus timer interval to 2 seconds so we still have X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/fde67d8665e17c26f7904c6020922f4786085f42?ds=sidebyside 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 --- 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;