1
0
Fork 0

clutter/actor: Remove workaround for broken clients

It's not needed in the private copy and can be quite confusing during
debugging.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2530>
This commit is contained in:
Robert Mader 2022-07-25 17:44:22 +02:00 committed by Marge Bot
parent 588e4e88f5
commit 01b96d6674

View file

@ -5792,36 +5792,7 @@ static gboolean
clutter_actor_real_get_paint_volume (ClutterActor *self,
ClutterPaintVolume *volume)
{
ClutterActorClass *klass;
gboolean res;
klass = CLUTTER_ACTOR_GET_CLASS (self);
/* XXX - this thoroughly sucks, but we don't want to penalize users
* who use ClutterActor as a "new ClutterGroup" by forcing a full-stage
* redraw. This should go away in 2.0.
*/
if (klass->paint == clutter_actor_real_paint &&
klass->get_paint_volume == clutter_actor_real_get_paint_volume)
{
res = TRUE;
}
else
{
/* this is the default return value: we cannot know if a class
* is going to paint outside its allocation, so we take the
* conservative approach.
*/
res = FALSE;
}
/* update_default_paint_volume() should only fail if one of the children
* reported an invalid, or no, paint volume
*/
if (!clutter_actor_update_default_paint_volume (self, volume))
return FALSE;
return res;
return clutter_actor_update_default_paint_volume (self, volume);
}
/**