Skip to content

Commit

Permalink
docking: Hard code the startup animation time
Browse files Browse the repository at this point in the history
Because gnome-shell stopped exporting the value in 45.0 it was being
treated as undefined, and therefore we had no startup animation.
  • Loading branch information
vanvugt committed Mar 28, 2024
1 parent 1053b3e commit 7482669
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docking.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const {signals: Signals} = imports;

const DOCK_DWELL_CHECK_INTERVAL = 100;
const ICON_ANIMATOR_DURATION = 3000;
const STARTUP_ANIMATION_TIME = 500;

export const State = Object.freeze({
HIDDEN: 0,
Expand Down Expand Up @@ -2103,8 +2104,6 @@ export class DockManager {
}

_runStartupAnimation(callback) {
const {STARTUP_ANIMATION_TIME} = Layout;

DockManager.allDocks.forEach(dock => {
const {dash} = dock;

Expand Down Expand Up @@ -2513,7 +2512,6 @@ export class DockManager {
const monitor = Main.layoutManager.primaryMonitor;
const x = monitor.x + monitor.width / 2.0;
const y = monitor.y + monitor.height / 2.0;
const {STARTUP_ANIMATION_TIME} = Layout;

this._prepareStartupAnimation(callback);
Main.uiGroup.set_pivot_point(
Expand Down

0 comments on commit 7482669

Please sign in to comment.