[gtk/wip/baedert/gl-rework: 6/11] text: Reset cursor opacity when unmapping
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 6/11] text: Reset cursor opacity when unmapping
- Date: Wed, 1 Jan 2020 18:06:26 +0000 (UTC)
commit 4525581e289698bf1e39c39f3a61b2daf622cf07
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]