GNOME Bugzilla – Bug 784223
screen: Remove stray assert
Last modified: 2017-07-07 13:00:13 UTC
See patch.
Created attachment 354523 [details] [review] screen: Remove stray assert When the number of (static) workspaces decreases, we relocate windows from extra workspaces before removing them. As removing a non-empty workspace is not allowed, we assert that it doesn't contain any windows before removing it. However that assert is - pointless, because meta_workspace_remove() already asserts that the workspace is empty - wrong, because even empty workspaces contain windows that are set to show on all workspaces Simply drop the assert to avoid a crash when trying to remove a workspace while on-all-workspaces windows are present.
Review of attachment 354523 [details] [review]: looks pretty obvious - wonder why we weren't hitting this until now
Attachment 354523 [details] pushed as 80e5955 - screen: Remove stray assert (In reply to Rui Matos from comment #2) > wonder why we weren't hitting this until now Well, it's not *that* likely - first dynamic workspaces need to be disabled, then a sticky window needs to be around when the setting is changed. Classic mode is probably the most important reproducer (static workspaces + desktop icons), but it looks like it's not used that much, or its users are generally happy with the default number of workspaces ...
*** Bug 781924 has been marked as a duplicate of this bug. ***