diff --git a/files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/workspace.js b/files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/workspace.js index 4af591ee8c..34ac623e32 100644 --- a/files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/workspace.js +++ b/files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/workspace.js @@ -239,8 +239,10 @@ class Workspace { && this.state.monitorWatchList.indexOf(metaWindow.get_monitor()) > -1; } - windowWorkspaceChanged(display, metaWorkspace, metaWindow) { - this.windowAdded(metaWindow, metaWorkspace); + windowWorkspaceChanged(display, metaWindow, metaWorkspace) { + // If the window is removed the metaWorkspace will be null, in that + // case we wouldn't want to add the window again. + if (metaWorkspace) this.windowAdded(metaWorkspace, metaWindow); } windowAdded(metaWorkspace, metaWindow, app, isFavoriteApp) {