auto-move-windows: Don't move windows already on all workspaces

This fixes a particular case of mutter#992.

Although gnome-shell will also be softened to not crash in future, it's
also a good idea for the extension to explicitly decide how it wants to
handle windows that are already on all workspaces.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/157>
This commit is contained in:
Daniel van Vugt
2021-01-28 16:33:50 +08:00
parent 8fcbed6481
commit 8a5e793b3d

View File

@@ -72,7 +72,7 @@ class WindowMover {
}
_moveWindow(window, workspaceNum) {
if (window.skip_taskbar)
if (window.skip_taskbar || window.is_on_all_workspaces())
return;
// ensure we have the required number of workspaces