text: Reset cursor opacity when unmapping
authorTimm Bäder <mail@baedert.org>
Mon, 30 Dec 2019 09:55:03 +0000 (10:55 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 7 Jan 2020 16:27:18 +0000 (17:27 +0100)
Otherwise we might get mapped again with a half-transparent cursor.

gtk/gtktext.c

index 3b49ef71bae44ef04f98350afe7f2259316620bc..b9a763352e2ad65840bf2f63081f527d5015ee61 100644 (file)
@@ -2062,6 +2062,8 @@ gtk_text_unmap (GtkWidget *widget)
     _gtk_text_handle_set_mode (priv->text_handle,
                                GTK_TEXT_HANDLE_MODE_NONE);
 
+  priv->cursor_alpha = 1.0;
+
   GTK_WIDGET_CLASS (gtk_text_parent_class)->unmap (widget);
 }