[vte] widget: Fix a drawing artifact with blinking cursor



commit 977375b05df4f906329177a401a2d8c00b2516d4
Author: Egmont Koblinger <egmont gmail com>
Date:   Sat Jun 14 10:23:54 2014 +0200

    widget: Fix a drawing artifact with blinking cursor
    
    https://bugzilla.gnome.org/show_bug.cgi?id=731427

 src/vte.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index b3488b0..cc211ee 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -4791,7 +4791,10 @@ vte_terminal_key_press(GtkWidget *widget, GdkEventKey *event)
                if (terminal->pvt->cursor_blink_tag != 0)
                {
                        remove_cursor_timeout (terminal);
-                       terminal->pvt->cursor_blink_state = TRUE;
+                        if (terminal->pvt->cursor_blink_state == FALSE) {
+                                _vte_invalidate_cursor_once(terminal, FALSE);
+                                terminal->pvt->cursor_blink_state = TRUE;
+                        }
                        add_cursor_timeout (terminal);
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]