configmgr: shadow exec rules when window is unmapped

fixes #6091
This commit is contained in:
Vaxry 2024-05-16 00:55:55 +01:00
parent 7e8c0b7f30
commit de9798fcf9
1 changed files with 3 additions and 0 deletions

View File

@ -1041,6 +1041,9 @@ std::vector<SWindowRule> CConfigManager::getMatchingRules(PHLWINDOW pWindow, boo
if (!valid(pWindow))
return std::vector<SWindowRule>();
// if the window is unmapped, don't process exec rules yet.
shadowExec = shadowExec || !pWindow->m_bIsMapped;
std::vector<SWindowRule> returns;
std::string title = pWindow->m_szTitle;