diff options
author | vaxerski <[email protected]> | 2023-03-18 15:02:00 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-18 15:02:00 +0000 |
commit | d544c30551a7e4c4b0a311535cd9c379f121e753 (patch) | |
tree | 167b572a0499fb5bbe5cc2d7398bb879aa2d9610 /src | |
parent | ef80a69399d1a5139dd29b77434a750d3da0650c (diff) | |
download | Hyprland-d544c30551a7e4c4b0a311535cd9c379f121e753.tar.gz Hyprland-d544c30551a7e4c4b0a311535cd9c379f121e753.zip |
LS: don't try to get rules on non-existent ls
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) |