workspacerules: Add a persistent workspace rule (#3530)
* add persistent flag to workspace rules * get rid of unused ws->indestructible flag
This commit is contained in:
parent
7f8e0a1318
commit
df0c8e0f7a
4 changed files with 7 additions and 4 deletions
|
|
@ -1188,8 +1188,11 @@ void CCompositor::sanityCheckWorkspaces() {
|
|||
auto it = m_vWorkspaces.begin();
|
||||
while (it != m_vWorkspaces.end()) {
|
||||
|
||||
if ((*it)->m_bIndestructible)
|
||||
const auto WORKSPACERULE = g_pConfigManager->getWorkspaceRuleFor(it->get());
|
||||
if (WORKSPACERULE.isPersistent) {
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
|
||||
const auto WINDOWSONWORKSPACE = getWindowsOnWorkspace((*it)->m_iID);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue