From 2bb36db9e823ca616ec8af52f502665a58100049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 5 Mar 2021 11:31:26 +0100 Subject: [PATCH] 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. Part-of: --- 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 f8b07d043..d50c2548b 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