mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 10:30:47 -05:00
text: relayout on cursor visibility change
When the cursor visibility changes, we have to relayout the ClutterText actor instead of just redrawing it - as the cursor changes the PangoLayout size, a size request cycle is needed. https://bugzilla.gnome.org/show_bug.cgi?id=702610
This commit is contained in:
parent
90243e9d88
commit
670d2357a6
@ -4504,7 +4504,8 @@ clutter_text_set_cursor_visible (ClutterText *self,
|
|||||||
{
|
{
|
||||||
priv->cursor_visible = cursor_visible;
|
priv->cursor_visible = cursor_visible;
|
||||||
|
|
||||||
clutter_text_queue_redraw (CLUTTER_ACTOR (self));
|
clutter_text_dirty_cache (self);
|
||||||
|
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
|
||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_VISIBLE]);
|
g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_VISIBLE]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user