projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
108aac9
)
text: Reset cursor opacity when unmapping
author
Timm Bäder
<mail@baedert.org>
Mon, 30 Dec 2019 09:55:03 +0000
(10:55 +0100)
committer
Timm 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
patch
|
blob
|
history
diff --git
a/gtk/gtktext.c
b/gtk/gtktext.c
index 3b49ef71bae44ef04f98350afe7f2259316620bc..b9a763352e2ad65840bf2f63081f527d5015ee61 100644
(file)
--- 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);
}