text: Reset cursor opacity when unmapping

Otherwise we might get mapped again with a half-transparent cursor.
This commit is contained in:
Timm Bäder 2019-12-30 10:55:03 +01:00
parent 108aac9ee3
commit c38c5c4ce1

View 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);
}