mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 11:36:54 +00:00
Always animate worspace change properly
This commit is contained in:
@@ -267,17 +267,6 @@ WindowManager.WindowManager.prototype._previewWorkspace = function(from, to, cal
|
||||
y: yDest,
|
||||
time: 0.25,
|
||||
transition: 'easeInOutQuad',
|
||||
onComplete: () => {
|
||||
Main.uiGroup.set_child_above_sibling(
|
||||
toSpace.cloneContainer,
|
||||
fromSpace.cloneContainer);
|
||||
},
|
||||
onOverwrite: () => {
|
||||
Main.uiGroup.set_child_above_sibling(
|
||||
toSpace.cloneContainer,
|
||||
fromSpace.cloneContainer);
|
||||
}
|
||||
|
||||
});
|
||||
Tweener.addTween(toSpace.cloneContainer,
|
||||
{ x: 0,
|
||||
|
||||
@@ -70,10 +70,10 @@ function enable() {
|
||||
global.screen.connect(
|
||||
'workspace-switched',
|
||||
(screen, from, to) => {
|
||||
let f = spaces.get(global.screen.get_workspace_by_index(from));
|
||||
let t = spaces.get(global.screen.get_workspace_by_index(to));
|
||||
Main.uiGroup.set_child_above_sibling(t.cloneContainer,
|
||||
f.cloneContainer);
|
||||
Main.wm._previewWorkspace(
|
||||
global.screen.get_workspace_by_index(from),
|
||||
global.screen.get_workspace_by_index(to)
|
||||
);
|
||||
}),
|
||||
|
||||
// Reset primary when monitors change
|
||||
|
||||
Reference in New Issue
Block a user