[gtk] text: Reset cursor opacity when unmapping
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] text: Reset cursor opacity when unmapping
- Date: Tue, 7 Jan 2020 16:41:39 +0000 (UTC)
commit c38c5c4ce14d5b4af35b5c5c9b947d83947b4204
Author: Timm Bäder <mail baedert org>
Date: Mon Dec 30 10:55:03 2019 +0100
text: Reset cursor opacity when unmapping
Otherwise we might get mapped again with a half-transparent cursor.
gtk/gtktext.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 3b49ef71ba..b9a763352e 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]