aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-05-10 02:28:21 +0100
committerVaxry <[email protected]>2024-05-10 02:38:56 +0100
commitdb30ff63e6dc3d3b631f9da55ccadc07c4440948 (patch)
treeb8b8d4e65a9b08455e4bb9d883b9f7eb6b5b1e9c
parenta7e23d2f1e27c241c2a72262d14d5dde9ea2e860 (diff)
downloadHyprland-db30ff63e6dc3d3b631f9da55ccadc07c4440948.tar.gz
Hyprland-db30ff63e6dc3d3b631f9da55ccadc07c4440948.zip
popups: avoid infinite recursion in bf
-rw-r--r--src/desktop/Popup.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/desktop/Popup.cpp b/src/desktop/Popup.cpp
index f1517083..05e79b4e 100644
--- a/src/desktop/Popup.cpp
+++ b/src/desktop/Popup.cpp
@@ -294,7 +294,8 @@ void CPopup::bfHelper(std::vector<CPopup*> nodes, std::function<void(CPopup*, vo
}
}
- bfHelper(nodes2, fn, data);
+ if (!nodes2.empty())
+ bfHelper(nodes2, fn, data);
}
void CPopup::breadthfirst(std::function<void(CPopup*, void*)> fn, void* data) {