mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
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:
parent
588e4e88f5
commit
01b96d6674
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user