LS: don't try to get rules on non-existent ls

This commit is contained in:
vaxerski 2023-03-18 15:02:00 +00:00
parent ef80a69399
commit d544c30551

View File

@ -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)