windowManager: Also clear animationInfo when size-changed wasn't emitted

It might be that we receive a "kill-window-effects" signal between the
emission of the "size-change" and the "size-changed" signal.

In this case we already have the animationInfo attached to the window
actor, so we should also remove it.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1251
This commit is contained in:
Jonas Dreßler 2020-05-12 13:51:27 +02:00 committed by Robert Mader
parent d7185d71c6
commit 8078d78c30

View File

@ -1385,9 +1385,11 @@ var WindowManager = class {
this._clearAnimationInfo(actor);
}
if (this._resizePending.delete(actor))
if (this._resizePending.delete(actor)) {
this._clearAnimationInfo(actor);
this._shellwm.completed_size_change(actor);
}
}
_hasAttachedDialogs(window, ignoreWindow) {
var count = 0;