mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -05:00
Reduce out-of-focus timer interval to 2 seconds so we still have
some control over keepalives when not in the foreground. [originally from svn r1093]
This commit is contained in:
parent
0086b20625
commit
50f50a009b
2
window.c
2
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 ... */
|
/* Hmm, term_update didn't want to do an update too soon ... */
|
||||||
timer_id = SetTimer(hwnd, 1, 50, NULL);
|
timer_id = SetTimer(hwnd, 1, 50, NULL);
|
||||||
else if (!has_focus)
|
else if (!has_focus)
|
||||||
timer_id = SetTimer(hwnd, 1, 59500, NULL);
|
timer_id = SetTimer(hwnd, 1, 2000, NULL);
|
||||||
else
|
else
|
||||||
timer_id = SetTimer(hwnd, 1, 100, NULL);
|
timer_id = SetTimer(hwnd, 1, 100, NULL);
|
||||||
long_timer = 1;
|
long_timer = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user