mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 06:45:59 +01:00
LS: don't try to get rules on non-existent ls
This commit is contained in:
parent
ef80a69399
commit
d544c30551
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue