Blame SOURCES/0001-auto-move-windows-Don-t-move-windows-already-on-all-.patch

4a4803
From 8a5e793b3d984f3acc378cf8914410311e9dde0e Mon Sep 17 00:00:00 2001
4a4803
From: Daniel van Vugt <daniel.van.vugt@canonical.com>
4a4803
Date: Thu, 28 Jan 2021 16:33:50 +0800
4a4803
Subject: [PATCH] auto-move-windows: Don't move windows already on all
4a4803
 workspaces
4a4803
4a4803
This fixes a particular case of mutter#992.
4a4803
4a4803
Although gnome-shell will also be softened to not crash in future, it's
4a4803
also a good idea for the extension to explicitly decide how it wants to
4a4803
handle windows that are already on all workspaces.
4a4803
4a4803
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/157>
4a4803
---
4a4803
 extensions/auto-move-windows/extension.js | 2 +-
4a4803
 1 file changed, 1 insertion(+), 1 deletion(-)
4a4803
4a4803
diff --git a/extensions/auto-move-windows/extension.js b/extensions/auto-move-windows/extension.js
4a4803
index b9bc3a0..3859809 100644
4a4803
--- a/extensions/auto-move-windows/extension.js
4a4803
+++ b/extensions/auto-move-windows/extension.js
4a4803
@@ -72,7 +72,7 @@ class WindowMover {
4a4803
     }
4a4803
 
4a4803
     _moveWindow(window, workspaceNum) {
4a4803
-        if (window.skip_taskbar)
4a4803
+        if (window.skip_taskbar || window.is_on_all_workspaces())
4a4803
             return;
4a4803
 
4a4803
         // ensure we have the required number of workspaces
4a4803
-- 
4a4803
2.37.1
4a4803