[gnome-shell] 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] st/entry: Invalidate shadow on cursor position/size changes
- Date: Mon, 14 Feb 2022 12:59:30 +0000 (UTC)
commit 2bb36db9e823ca616ec8af52f502665a58100049
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.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>
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 f8b07d043c..d50c2548bd 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]