compositor: recompute shape when surface is changed

Anytime the surface is changed, we need to rebuild our masks and
recalculate our shapes since the new surface may have a different
size.

If the actor gets redrawn for any reason before that computation
happens then it will misrender.

This commit makes sure we do the recomputation right away, before
any painting might occur.
This commit is contained in:
Ray Strode 2018-03-19 14:31:16 -04:00 committed by Ray Strode
parent 3488015d17
commit c21d12c4ac

View File

@ -296,6 +296,7 @@ surface_size_changed (MetaSurfaceActor *actor,
MetaWindowActor *self = META_WINDOW_ACTOR (user_data);
meta_window_actor_update_shape (self);
meta_window_actor_handle_updates (self);
}
static void