Initialize cursor alpha to 1.0
authorBenjamin Otte <otte@redhat.com>
Wed, 16 Oct 2019 13:02:52 +0000 (15:02 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 16 Oct 2019 19:45:33 +0000 (21:45 +0200)
That way, non-animated cursors don't disappear.

gtk/gtktext.c

index 6627fee23e7dea9ab7301f9547a61c970233ef68..ff5a942fbde11eceb9a7e55c30f6b02c1c652d27 100644 (file)
@@ -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;