forked from AuroraMiddleware/gtk
textview: Fix blinking block cursors
When we have a block cursor, we need to discard the cached node of the line containing the cursor, in order to get a blinking cursor.
This commit is contained in:
parent
daed57c30e
commit
e345f9a4db
@ -4232,6 +4232,13 @@ gtk_text_layout_snapshot (GtkTextLayout *layout,
|
||||
selection_end_index = -1;
|
||||
}
|
||||
|
||||
if (line_display->node != NULL)
|
||||
{
|
||||
if (line_display->has_block_cursor &&
|
||||
gtk_widget_has_focus (widget))
|
||||
g_clear_pointer (&line_display->node, gsk_render_node_unref);
|
||||
}
|
||||
|
||||
if (line_display->node == NULL)
|
||||
{
|
||||
gtk_snapshot_push_collect (snapshot);
|
||||
|
Loading…
Reference in New Issue
Block a user