mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
Bind constraints: Don't force redraws on source relayout
When the source actor potentially changes size, that shouldn't necessarily result in the target actor being redrawn - it should be like when a child of a container is reallocated due to changes in its siblings or parent - it should redraw only to the extent that it is moved and resized. Privately export an internal function from clutter-actor.c to allow getting this right. https://bugzilla.gnome.org/show_bug.cgi?id=719367
This commit is contained in:
parent
3cd9a70fea
commit
0b536c02f9
@ -318,6 +318,7 @@ void _clutter_actor_detach_clone
|
|||||||
ClutterActor *clone);
|
ClutterActor *clone);
|
||||||
void _clutter_actor_queue_redraw_on_clones (ClutterActor *actor);
|
void _clutter_actor_queue_redraw_on_clones (ClutterActor *actor);
|
||||||
void _clutter_actor_queue_relayout_on_clones (ClutterActor *actor);
|
void _clutter_actor_queue_relayout_on_clones (ClutterActor *actor);
|
||||||
|
void _clutter_actor_queue_only_relayout (ClutterActor *actor);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
@ -1037,8 +1037,6 @@ static void clutter_anchor_coord_set_gravity (AnchorCoord *coord
|
|||||||
|
|
||||||
static gboolean clutter_anchor_coord_is_zero (const AnchorCoord *coord);
|
static gboolean clutter_anchor_coord_is_zero (const AnchorCoord *coord);
|
||||||
|
|
||||||
static void _clutter_actor_queue_only_relayout (ClutterActor *self);
|
|
||||||
|
|
||||||
static void _clutter_actor_get_relative_transformation_matrix (ClutterActor *self,
|
static void _clutter_actor_get_relative_transformation_matrix (ClutterActor *self,
|
||||||
ClutterActor *ancestor,
|
ClutterActor *ancestor,
|
||||||
CoglMatrix *matrix);
|
CoglMatrix *matrix);
|
||||||
@ -8862,7 +8860,7 @@ _clutter_actor_queue_redraw_with_clip (ClutterActor *self,
|
|||||||
NULL /* effect */);
|
NULL /* effect */);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
_clutter_actor_queue_only_relayout (ClutterActor *self)
|
_clutter_actor_queue_only_relayout (ClutterActor *self)
|
||||||
{
|
{
|
||||||
ClutterActorPrivate *priv = self->priv;
|
ClutterActorPrivate *priv = self->priv;
|
||||||
|
@ -151,7 +151,7 @@ source_queue_relayout (ClutterActor *source,
|
|||||||
ClutterBindConstraint *bind)
|
ClutterBindConstraint *bind)
|
||||||
{
|
{
|
||||||
if (bind->actor != NULL)
|
if (bind->actor != NULL)
|
||||||
clutter_actor_queue_relayout (bind->actor);
|
_clutter_actor_queue_only_relayout (bind->actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -94,7 +94,7 @@ source_queue_relayout (ClutterActor *source,
|
|||||||
ClutterSnapConstraint *constraint)
|
ClutterSnapConstraint *constraint)
|
||||||
{
|
{
|
||||||
if (constraint->actor != NULL)
|
if (constraint->actor != NULL)
|
||||||
clutter_actor_queue_relayout (constraint->actor);
|
_clutter_actor_queue_only_relayout (constraint->actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user