mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
actor: Unallocated children do not contribute to the paint volume
Just like unmapped children. Apparently, layers above Clutter allow mapped children without an allocation, instead of unmapping them. This means we need to ignore them when computing the paint volume. Patch originally by: Adel Gadllah <adel.gadllah@gmail.com> Signed-off by: Emmanuele Bassi <ebassi@gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=736682
This commit is contained in:
parent
acd8f86570
commit
14da1c5027
@ -6027,7 +6027,13 @@ clutter_actor_update_default_paint_volume (ClutterActor *self,
|
|||||||
{
|
{
|
||||||
const ClutterPaintVolume *child_volume;
|
const ClutterPaintVolume *child_volume;
|
||||||
|
|
||||||
if (!CLUTTER_ACTOR_IS_MAPPED (child))
|
/* we ignore unmapped children, since they won't be painted.
|
||||||
|
*
|
||||||
|
* XXX: we also have to ignore mapped children without a valid
|
||||||
|
* allocation, because apparently some code above Clutter allows
|
||||||
|
* them.
|
||||||
|
*/
|
||||||
|
if (!CLUTTER_ACTOR_IS_MAPPED (child) || !clutter_actor_has_allocation (child))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
child_volume = clutter_actor_get_transformed_paint_volume (child, self);
|
child_volume = clutter_actor_get_transformed_paint_volume (child, self);
|
||||||
|
Loading…
Reference in New Issue
Block a user