Skip to content

Commit

Permalink
configmgr: shadow exec rules when window is unmapped
Browse files Browse the repository at this point in the history
fixes #6091
  • Loading branch information
vaxerski committed May 15, 2024
1 parent 7e8c0b7 commit de9798f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de9798f

Please sign in to comment.