windowManager: Avoid calling meta_window_actor_thaw when not frozen

Because that tends to crash in:
```
g_error ("Error in freeze/thaw accounting");
```

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1431

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1453
This commit is contained in:
Daniel van Vugt 2020-10-02 16:33:31 +08:00
parent cc9f66d784
commit 6ba3ca5f95

View File

@ -1378,6 +1378,10 @@ var WindowManager = class {
onStopped: () => this._sizeChangeWindowDone(shellwm, actor), onStopped: () => this._sizeChangeWindowDone(shellwm, actor),
}); });
// ease didn't animate and cleared the info, we are done
if (!actor.__animationInfo)
return;
// Now unfreeze actor updates, to get it to the new size. // Now unfreeze actor updates, to get it to the new size.
// It's important that we don't wait until the animation is completed to // It's important that we don't wait until the animation is completed to
// do this, otherwise our scale will be applied to the old texture size. // do this, otherwise our scale will be applied to the old texture size.