diff --git a/js/ui/workspaceAnimation.js b/js/ui/workspaceAnimation.js index b807f3577..432044f75 100644 --- a/js/ui/workspaceAnimation.js +++ b/js/ui/workspaceAnimation.js @@ -450,6 +450,7 @@ var WorkspaceAnimationController = class { switchData.gestureActivated = true; const newWs = switchData.baseMonitorGroup.findClosestWorkspace(endProgress); + const endTime = Clutter.get_current_event_time(); for (const monitorGroup of this._switchData.monitors) { const progress = monitorGroup.getWorkspaceProgress(newWs); @@ -462,7 +463,7 @@ var WorkspaceAnimationController = class { if (monitorGroup.index === Main.layoutManager.primaryIndex) { params.onComplete = () => { if (!newWs.active) - newWs.activate(global.get_current_time()); + newWs.activate(endTime); this._finishWorkspaceSwitch(switchData); }; }