mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
compositor: don't recalculate shape and masks until surface arrives
mutter uses the windows "buffer rect" to determine how big to draw the titlebar, and what masks to apply to the window for opaque areas. That buffer rect is updated the moment we initiate a resize operation on a window, but not actually accurate until the resize operation finishes This commit makes sure the window actor keeps using its old shapes and masks until any pending resize operation finishes.
This commit is contained in:
parent
db1adab828
commit
fbf7e0073e
@ -1922,10 +1922,11 @@ meta_window_actor_handle_updates (MetaWindowActor *self)
|
||||
{
|
||||
MetaWindowActorPrivate *priv = self->priv;
|
||||
|
||||
if (is_frozen (self))
|
||||
if (is_frozen (self) || meta_window_resize_is_pending (priv->window))
|
||||
{
|
||||
/* The window is frozen due to a pending animation: we'll wait until
|
||||
* the animation finishes to reshape and repair the window */
|
||||
/* If the window is frozen due to a pending animation or a resize is
|
||||
* pending then we'll wait until the animation or resize finishes to
|
||||
* reshape and repair the window */
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user