mirror of
https://github.com/hyprwm/Hyprland
synced 2025-02-17 03:22:31 +01:00
parent
db30ff63e6
commit
2ba6bb69c4
1 changed files with 2 additions and 1 deletions
|
@ -301,6 +301,7 @@ void CPopup::bfHelper(std::vector<CPopup*> nodes, std::function<void(CPopup*, vo
|
||||||
void CPopup::breadthfirst(std::function<void(CPopup*, void*)> fn, void* data) {
|
void CPopup::breadthfirst(std::function<void(CPopup*, void*)> fn, void* data) {
|
||||||
std::vector<CPopup*> popups;
|
std::vector<CPopup*> popups;
|
||||||
popups.push_back(this);
|
popups.push_back(this);
|
||||||
|
bfHelper(popups, fn, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
CPopup* CPopup::at(const Vector2D& globalCoords, bool allowsInput) {
|
CPopup* CPopup::at(const Vector2D& globalCoords, bool allowsInput) {
|
||||||
|
@ -316,7 +317,7 @@ CPopup* CPopup::at(const Vector2D& globalCoords, bool allowsInput) {
|
||||||
if (BOX.containsPoint(globalCoords))
|
if (BOX.containsPoint(globalCoords))
|
||||||
return p;
|
return p;
|
||||||
} else {
|
} else {
|
||||||
const auto REGION = CRegion{&m_sWLSurface.wlr()->current.input}.translate(p->coordsGlobal());
|
const auto REGION = CRegion{&p->m_sWLSurface.wlr()->current.input}.translate(p->coordsGlobal());
|
||||||
if (REGION.containsPoint(globalCoords))
|
if (REGION.containsPoint(globalCoords))
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue