diff options
author | Chris Wilson <cpwilson@src.gnome.org> | 2007-02-23 16:02:29 +0000 |
---|---|---|
committer | Chris Wilson <cpwilson@src.gnome.org> | 2007-02-23 16:02:29 +0000 |
commit | 0e510fe7354ac3987f0c0b10521768063eb40560 (patch) | |
tree | 4cbf8bde1730267735d0585d9ac0910d7ad055fa | |
parent | 7d683f4c600ab76f90899dde4e5e49307931e182 (diff) | |
download | vte-0e510fe7354ac3987f0c0b10521768063eb40560.tar.gz |
only set in the input active flag if we actually read in data
svn path=/trunk/; revision=1732
-rw-r--r-- | src/vte.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3444,6 +3444,7 @@ vte_terminal_io_read(GIOChannel *channel, const int fd = g_io_channel_unix_get_fd (channel); guchar *bp; int rem, loops = 5; + gboolean active = FALSE; chunk = terminal->pvt->incoming; if (!chunk || chunk->len == sizeof (chunk->data)) { chunk = get_chunk (); @@ -3465,6 +3466,7 @@ vte_terminal_io_read(GIOChannel *channel, default: bp += ret; rem -= ret; + active = TRUE; break; } } while (rem); @@ -3495,7 +3497,7 @@ out: vte_terminal_add_process_timeout (terminal); GDK_THREADS_LEAVE (); } - terminal->pvt->pty_input_active = TRUE; + terminal->pvt->pty_input_active = active; } /* Error? */ |