Commit 46cdab5b authored by Behdad Esfahbod's avatar Behdad Esfahbod Committed by Behdad Esfahbod

Only discontinue timer if nothing was updated in the last cycle.

2006-02-13  Behdad Esfahbod  <behdad@gnome.org>

        * src/vte.c (update_timeout): Only discontinue timer if nothing
        was updated in the last cycle.
parent 7bcb1977
2006-02-13 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (update_timeout): Only discontinue timer if nothing
was updated in the last cycle.
2006-02-13 Behdad Esfahbod <behdad@gnome.org>
* gnome-pty-helper/gnome-pty-helper.c: Fix race condition when
......
......@@ -193,15 +193,19 @@ _vte_terminal_set_default_attributes(VteTerminal *terminal)
static gboolean
vte_update_timeout(VteTerminal *terminal)
{
terminal->pvt->update_timer = 0;
/* We only stop the timer if no update request was received in this
* past cycle.
*/
if (terminal->pvt->update_region) {
gdk_window_invalidate_region(GTK_WIDGET(terminal)->window,
terminal->pvt->update_region, FALSE);
gdk_region_destroy (terminal->pvt->update_region);
terminal->pvt->update_region = NULL;
} else {
terminal->pvt->update_timer = 0;
}
return FALSE;
return terminal->pvt->update_timer ? TRUE : FALSE;
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment