diff options
author | Vaxry <[email protected]> | 2024-03-02 18:53:11 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-03-02 18:53:17 +0000 |
commit | d2289d8327d46e6b55c06b3c639fc138c3e02d1a (patch) | |
tree | cf37461b01347ca82e302a9d3afa1acae49937d6 /src/config/ConfigManager.cpp | |
parent | be89d6faa988f6bd33a66f02746872c649a16180 (diff) | |
download | Hyprland-d2289d8327d46e6b55c06b3c639fc138c3e02d1a.tar.gz Hyprland-d2289d8327d46e6b55c06b3c639fc138c3e02d1a.zip |
xdg: minor improvements to initial size reporting
fixes #4918
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r-- | src/config/ConfigManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 2fd5aa28..4ae62392 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -945,7 +945,7 @@ SWorkspaceRule CConfigManager::getWorkspaceRuleFor(CWorkspace* pWorkspace) { return *IT; } -std::vector<SWindowRule> CConfigManager::getMatchingRules(CWindow* pWindow, bool dynamic) { +std::vector<SWindowRule> CConfigManager::getMatchingRules(CWindow* pWindow, bool dynamic, bool shadowExec) { if (!g_pCompositor->windowExists(pWindow)) return std::vector<SWindowRule>(); @@ -1093,7 +1093,7 @@ std::vector<SWindowRule> CConfigManager::getMatchingRules(CWindow* pWindow, bool } } - if (anyExecFound) // remove exec rules to unclog searches in the future, why have the garbage here. + if (anyExecFound && !shadowExec) // remove exec rules to unclog searches in the future, why have the garbage here. execRequestedRules.erase(std::remove_if(execRequestedRules.begin(), execRequestedRules.end(), [&](const SExecRequestedRule& other) { return std::ranges::any_of(PIDs, [&](const auto& pid) { return pid == other.iPid; }); })); |