mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Make switch-workspace faster (the same as the other wm ops)
This commit is contained in:
parent
bea595d143
commit
deaf0e4e1a
1 changed files with 2 additions and 3 deletions
|
|
@ -10,7 +10,6 @@ const Main = imports.ui.main;
|
|||
const Tweener = imports.ui.tweener;
|
||||
|
||||
const WINDOW_ANIMATION_TIME = 0.25;
|
||||
const SWITCH_ANIMATION_TIME = 0.5;
|
||||
|
||||
function WindowManager() {
|
||||
this._init();
|
||||
|
|
@ -342,7 +341,7 @@ WindowManager.prototype = {
|
|||
Tweener.addTween(switchData.outGroup,
|
||||
{ x: xDest,
|
||||
y: yDest,
|
||||
time: SWITCH_ANIMATION_TIME,
|
||||
time: WINDOW_ANIMATION_TIME,
|
||||
transition: "easeOutQuad",
|
||||
onComplete: this._switchWorkspaceDone,
|
||||
onCompleteScope: this
|
||||
|
|
@ -350,7 +349,7 @@ WindowManager.prototype = {
|
|||
Tweener.addTween(switchData.inGroup,
|
||||
{ x: 0,
|
||||
y: 0,
|
||||
time: SWITCH_ANIMATION_TIME,
|
||||
time: WINDOW_ANIMATION_TIME,
|
||||
transition: "easeOutQuad"
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue