[vte/vte-0-38] widget: Check cursor's display before using it
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-38] widget: Check cursor's display before using it
- Date: Mon, 3 Nov 2014 17:39:49 +0000 (UTC)
commit 5cff499de0122b44d60c189ec138b2853af10a6c
Author: Christian Persch <chpe gnome org>
Date: Mon Nov 3 18:38:30 2014 +0100
widget: Check cursor's display before using it
(cherry picked from commit 19963440f9da89e2a3035c8a7488a92a244f22e3)
src/vte.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 9374fe6..28b7be9 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -1147,7 +1147,8 @@ vte_terminal_set_cursor_from_regex_match(VteTerminal *terminal, struct vte_match
switch (regex->cursor_mode) {
case VTE_REGEX_CURSOR_GDKCURSOR:
- if (regex->cursor.cursor != NULL) {
+ if (regex->cursor.cursor != NULL &&
+ gdk_cursor_get_display(regex->cursor.cursor) ==
gtk_widget_get_display(&terminal->widget)) {
cursor = g_object_ref(regex->cursor.cursor);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]