mirror of
https://github.com/brl/mutter.git
synced 2025-02-20 15:04:09 +00:00
actor: Queue a relayout if we use the content's preferred size
In case the ClutterContent changes, and the actor uses the content's preferred size to drive its own.
This commit is contained in:
parent
e2eb0b0ada
commit
4f03b32eea
@ -19592,9 +19592,12 @@ clutter_actor_set_content (ClutterActor *self,
|
|||||||
_clutter_content_attached (priv->content, self);
|
_clutter_content_attached (priv->content, self);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* given that the content is always painted within the allocation,
|
/* if the actor's preferred size is the content's preferred size,
|
||||||
* we only need to queue a redraw here
|
* then we need to conditionally queue a relayout here...
|
||||||
*/
|
*/
|
||||||
|
if (priv->request_mode == CLUTTER_REQUEST_CONTENT_SIZE)
|
||||||
|
_clutter_actor_queue_only_relayout (self);
|
||||||
|
|
||||||
clutter_actor_queue_redraw (self);
|
clutter_actor_queue_redraw (self);
|
||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CONTENT]);
|
g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CONTENT]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user