Commit 5cff499d authored by Christian Persch's avatar Christian Persch

widget: Check cursor's display before using it

(cherry picked from commit 19963440)
parent 449f78db
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment