1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 20:42:48 -05:00

Only engage a GTK idle function when absolutely necessary, otherwise

the whole app spins on it and takes up CPU all the time.

[originally from svn r2052]
This commit is contained in:
Simon Tatham
2002-10-14 23:32:00 +00:00
parent 7dff77fccf
commit 8bc305cafe
3 changed files with 25 additions and 8 deletions

View File

@ -3708,6 +3708,11 @@ void term_nopaste()
paste_len = 0;
}
int term_paste_pending(void)
{
return paste_len != 0;
}
void term_paste()
{
static long last_paste = 0;