workspaceAnimation: Stop depending on shellwm
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/605
This commit is contained in:

committed by
Florian Müllner

parent
fa31bcaa7a
commit
6d5446e4a6
@ -945,6 +945,14 @@ var WindowManager = class {
|
||||
|
||||
this._workspaceAnimation =
|
||||
new WorkspaceAnimation.WorkspaceAnimationController();
|
||||
|
||||
this._shellwm.connect('kill-switch-workspace', () => {
|
||||
if (!this._workspaceAnimation.isAnimating() || this._workspaceAnimation.canCancelGesture())
|
||||
return;
|
||||
|
||||
this._workspaceAnimation.cancelSwitchAnimation();
|
||||
this._shellwm.completed_switch_workspace();
|
||||
});
|
||||
}
|
||||
|
||||
_showPadOsd(display, device, settings, imagePath, editionMode, monitorIndex) {
|
||||
@ -1554,8 +1562,9 @@ var WindowManager = class {
|
||||
return;
|
||||
}
|
||||
|
||||
this._workspaceAnimation.animateSwitchWorkspace(shellwm, from, to,
|
||||
direction);
|
||||
this._workspaceAnimation.animateSwitchWorkspace(from, to, direction, () => {
|
||||
this._shellwm.completed_switch_workspace();
|
||||
});
|
||||
}
|
||||
|
||||
_showTilePreview(shellwm, window, tileRect, monitorIndex) {
|
||||
|
Reference in New Issue
Block a user