summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgmont Koblinger <egmont@gmail.com>2015-08-16 12:31:39 +0200
committerEgmont Koblinger <egmont@gmail.com>2015-08-16 12:31:39 +0200
commitc1db666000f9c8e3d05930690926a6d7908e8e41 (patch)
tree03a8ee256de26630030a907c141622631a9536fd
parent23c7cd0f99d504cbab06d4c27254d4f3e2807ba8 (diff)
downloadvte-c1db666000f9c8e3d05930690926a6d7908e8e41.tar.gz
widget: Ensure cursor is shown when blinking gets turned off
https://bugzilla.gnome.org/show_bug.cgi?id=753645
-rw-r--r--src/vte.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vte.cc b/src/vte.cc
index 32cccc09..5b70bd1b 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -4694,6 +4694,10 @@ remove_cursor_timeout (VteTerminal *terminal)
g_source_remove (terminal->pvt->cursor_blink_tag);
terminal->pvt->cursor_blink_tag = 0;
+ if (terminal->pvt->cursor_blink_state == FALSE) {
+ _vte_invalidate_cursor_once(terminal, FALSE);
+ terminal->pvt->cursor_blink_state = TRUE;
+ }
}
/* Activates / disactivates the cursor blink timer to reduce wakeups */
@@ -4839,10 +4843,6 @@ vte_terminal_key_press(GtkWidget *widget, GdkEventKey *event)
if (terminal->pvt->cursor_blink_tag != 0)
{
remove_cursor_timeout (terminal);
- if (terminal->pvt->cursor_blink_state == FALSE) {
- _vte_invalidate_cursor_once(terminal, FALSE);
- terminal->pvt->cursor_blink_state = TRUE;
- }
add_cursor_timeout (terminal);
}