[gnome-shell/gnome-41] st/entry: Invalidate shadow on cursor position/size changes
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-41] st/entry: Invalidate shadow on cursor position/size changes
- Date: Tue, 15 Feb 2022 16:57:30 +0000 (UTC)
commit cd4e0c057075a8b77ac0af6812eca25b3173bfa5
Author: Jonas Dreßler <verdre v0yd nl>
Date: Fri Mar 5 11:31:26 2021 +0100
st/entry: Invalidate shadow on cursor position/size changes
When text shadows are used, the cursor indicating the current position
also casts a shadow.
This means we have to regenerate the shadow texture after the cursor
position changed, so invalidate the shadow in that case.
(cherry picked from commit 2bb36db9e823ca616ec8af52f502665a58100049)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2180>
src/st/st-entry.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/st/st-entry.c b/src/st/st-entry.c
index a8edb2de4d..02c190158e 100644
--- a/src/st/st-entry.c
+++ b/src/st/st-entry.c
@@ -539,7 +539,11 @@ static void
clutter_text_cursor_changed (ClutterText *text,
StEntry *entry)
{
+ StEntryPrivate *priv = ST_ENTRY_PRIV (entry);
+
st_entry_update_hint_visibility (entry);
+
+ g_clear_pointer (&priv->text_shadow_material, cogl_object_unref);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]