mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
remove some spring animation code, no longer available in gnome 42 and not used since gnome 40
This commit is contained in:
12
taskbar.js
12
taskbar.js
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user