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

View file

@ -1041,6 +1041,9 @@ std::vector<SWindowRule> CConfigManager::getMatchingRules(PHLWINDOW pWindow, boo
if (!valid(pWindow)) if (!valid(pWindow))
return std::vector<SWindowRule>(); 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::vector<SWindowRule> returns;
std::string title = pWindow->m_szTitle; std::string title = pWindow->m_szTitle;