diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config/ConfigManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index e261d699..a157a108 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1653,6 +1653,9 @@ std::vector<SWindowRule> CConfigManager::getMatchingRules(CWindow* pWindow) { std::vector<SLayerRule> CConfigManager::getMatchingRules(SLayerSurface* pLS) { std::vector<SLayerRule> returns; + if (!pLS->layerSurface || pLS->fadingOut) + return returns; + for (auto& lr : m_dLayerRules) { if (lr.targetNamespace.find("address:0x") == 0) { if (getFormat("address:0x%x", pLS) != lr.targetNamespace) |