mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-10-30 05:51:44 +00:00
LS: don't try to get rules on non-existent ls
This commit is contained in:
parent
ef80a69399
commit
d544c30551
@ -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 New Issue
Block a user