[vte/vte-0-36] widget: Fix a drawing artifact with blinking cursor



commit d4a84d4fb298235c63d5a7a74a215b27b3706b01
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
    (cherry picked from commit 977375b05df4f906329177a401a2d8c00b2516d4)

 src/vte.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index c407d41..9f95fe3 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -5296,7 +5296,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]