Don't animate workspaces behind multitasking view (#1466)

This commit is contained in:
David Hewitt 2022-10-05 17:09:18 +01:00 committed by GitHub
parent da74e99775
commit a12c1a1c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1752,7 +1752,8 @@ namespace Gala {
if (!enable_animations
|| AnimationDuration.WORKSPACE_SWITCH == 0
|| (direction != Meta.MotionDirection.LEFT && direction != Meta.MotionDirection.RIGHT)
|| animating_switch_workspace) {
|| animating_switch_workspace
|| workspace_view.is_opened ()) {
animating_switch_workspace = false;
switch_workspace_completed ();
return;