workspaceAnimation: Notify 'progress' property properly

The getter of the MonitorGroup's 'progress' property sets
some values based on it, but doesn't notify the property
change.

Fix that by calling this.notify('progress') when the setter
is called.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2881>
This commit is contained in:
Georges Basile Stavracas Neto 2023-08-10 16:57:47 -03:00 committed by Marge Bot
parent 13f4c781d5
commit f1db3498eb

View File

@ -214,6 +214,8 @@ const MonitorGroup = GObject.registerClass({
this._container.x = Math.round(p * this.baseDistance); this._container.x = Math.round(p * this.baseDistance);
else else
this._container.x = -Math.round(p * this.baseDistance); this._container.x = -Math.round(p * this.baseDistance);
this.notify('progress');
} }
get index() { get index() {