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

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