GNOME Bugzilla – Bug 735608
workspace: Always remove removed windows
Last modified: 2014-08-28 14:58:26 UTC
Fallout from the workspace rewrite - to reproduce: (1) Go to overview (2) Drag a window to another workspace in the switcher The window is moved to the new workspace, but its preview is not removed from the old workspace. Attached patch appears to work in testing without any obvious regressions, but I may be overlooking something ...
Created attachment 284706 [details] [review] workspace: Always remove removed windows Since mutter commit 527c53a2a0582eba, MetaWorkspace::window-removed is emitted *before* MetaWindow:workspace is updated, so the test whether the removed window should still be on the workspace in question will always return true. Assume the test is no longer necessary nowadays to fix this very obvious regression.
Review of attachment 284706 [details] [review]: Yeah, makes sense. I'm surprised we were relying on this really weird API assumption.
Attachment 284706 [details] pushed as c9f3afc - workspace: Always remove removed windows