From c2a32afe9791124b6f365e3ba322d58a2d082c61 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 16 Oct 2019 15:02:52 +0200 Subject: [PATCH] Initialize cursor alpha to 1.0 That way, non-animated cursors don't disappear. --- gtk/gtktext.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtktext.c b/gtk/gtktext.c index 6627fee23e..ff5a942fbd 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -1681,6 +1681,7 @@ gtk_text_init (GtkText *self) priv->truncate_multiline = FALSE; priv->xalign = 0.0; priv->insert_pos = -1; + priv->cursor_alpha = 1.0; priv->selection_content = g_object_new (GTK_TYPE_TEXT_CONTENT, NULL); GTK_TEXT_CONTENT (priv->selection_content)->self = self;