window-actor: Don't freeze actor updates during the size-change effect

As explained in the last commits, we'll let gnome-shell take care of
this since freezing and thawing needs to be decoupled from the effect
starting and ending.

So stop freezing the MetaWindowActor when starting the effect and
thawing the actor when ending the effect.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1250
This commit is contained in:
Jonas Dreßler 2020-05-12 12:08:41 +02:00 committed by Robert Mader
parent fb474fb612
commit e6a93326bf

View File

@ -589,7 +589,6 @@ is_freeze_thaw_effect (MetaPluginEffect event)
switch (event) switch (event)
{ {
case META_PLUGIN_DESTROY: case META_PLUGIN_DESTROY:
case META_PLUGIN_SIZE_CHANGE:
return TRUE; return TRUE;
break; break;
default: default:
@ -937,14 +936,10 @@ meta_window_actor_size_change (MetaWindowActor *self,
meta_compositor_get_plugin_manager (compositor); meta_compositor_get_plugin_manager (compositor);
priv->size_change_in_progress++; priv->size_change_in_progress++;
meta_window_actor_freeze (self);
if (!meta_plugin_manager_event_size_change (plugin_mgr, self, if (!meta_plugin_manager_event_size_change (plugin_mgr, self,
which_change, old_frame_rect, old_buffer_rect)) which_change, old_frame_rect, old_buffer_rect))
{ priv->size_change_in_progress--;
priv->size_change_in_progress--;
meta_window_actor_thaw (self);
}
} }
#if 0 #if 0