[vte/vte-0-42] widget: Invalidate cursor on style change
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-42] widget: Invalidate cursor on style change
- Date: Wed, 2 Mar 2016 11:47:48 +0000 (UTC)
commit 8d3fb14d16094b1f5310967a5f897d733877ec48
Author: Egmont Koblinger <egmont gmail com>
Date: Wed Mar 2 12:42:08 2016 +0100
widget: Invalidate cursor on style change
https://bugzilla.gnome.org/show_bug.cgi?id=762963
(cherry picked from commit a633f57e05dc30f444c5407ecb30b1bd67754ff4)
src/vte.cc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 701891b..2a31853 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -3701,6 +3701,7 @@ vte_terminal_process_incoming(VteTerminal *terminal)
VteScreen *screen;
VteVisualPosition cursor;
gboolean cursor_visible;
+ VteCursorStyle cursor_style;
GdkPoint bbox_topleft, bbox_bottomright;
gunichar *wbuf, c;
long wcount, start, delta;
@@ -3725,6 +3726,7 @@ vte_terminal_process_incoming(VteTerminal *terminal)
/* Save the current cursor position. */
cursor = screen->cursor;
cursor_visible = terminal->pvt->cursor_visible;
+ cursor_style = terminal->pvt->cursor_style;
in_scroll_region = terminal->pvt->scrolling_restricted
&& (screen->cursor.row >= (screen->insert_delta + terminal->pvt->scrolling_region.start))
@@ -4085,7 +4087,8 @@ next_match:
_vte_check_cursor_blink(terminal);
/* Signal that the cursor moved. */
vte_terminal_queue_cursor_moved(terminal);
- } else if (cursor_visible != terminal->pvt->cursor_visible) {
+ } else if ((cursor_visible != terminal->pvt->cursor_visible) ||
+ (cursor_style != terminal->pvt->cursor_style)) {
_vte_invalidate_cell(terminal, cursor.col, cursor.row);
_vte_check_cursor_blink(terminal);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]