remove some spring animation code, no longer available in gnome 42 and not used since gnome 40

This commit is contained in:
Philipp Unger
2022-03-23 13:45:18 +01:00
parent ce49cfca5e
commit 0148daa49e

View File

@@ -1236,19 +1236,9 @@ var taskbar = Utils.defineClass({
};
}
// force spring animation triggering.By default the animation only
// runs if we are already inside the overview.
// force exiting overview if needed
if (!Main.overview._shown) {
this.forcedOverview = true;
let grid = AppDisplay._grid;
let onShownCb;
let overviewSignal = Config.PACKAGE_VERSION > '3.38.1' ? 'showing' : 'shown';
let overviewShowingId = Main.overview.connect(overviewSignal, () => {
Main.overview.disconnect(overviewShowingId);
onShownCb();
});
onShownCb = () => grid.emit('animation-done');
}
//temporarily use as primary the monitor on which the showapps btn was clicked, this is