mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 20:29:48 +01:00
popups: avoid infinite recursion in bf
This commit is contained in:
parent
a7e23d2f1e
commit
db30ff63e6
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue