summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <cpwilson@src.gnome.org>2007-02-23 16:02:29 +0000
committerChris Wilson <cpwilson@src.gnome.org>2007-02-23 16:02:29 +0000
commit0e510fe7354ac3987f0c0b10521768063eb40560 (patch)
tree4cbf8bde1730267735d0585d9ac0910d7ad055fa
parent7d683f4c600ab76f90899dde4e5e49307931e182 (diff)
downloadvte-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vte.c b/src/vte.c
index b18730f5..79d0051d 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -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? */