window-actor/X11: Update shape, input and opaque region in order

As they depend on each other to be correct, we should set all of them
in the correct order. As we do already have a function for that, use it.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1091
This commit is contained in:
Robert Mader 2020-02-25 00:14:40 +01:00 committed by Olivier Fourdan
parent 8abdf16a39
commit adc38f902a

View File

@ -1138,10 +1138,7 @@ handle_updates (MetaWindowActorX11 *actor_x11)
* which causes the shadows to look bad.
*/
if (surface && meta_window_x11_always_update_shape (window))
{
update_opaque_region (actor_x11);
update_shape_region (actor_x11);
}
check_needs_reshape (actor_x11);
return;
}