diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-12-16 16:32:31 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-12-16 16:32:37 +0000 |
| commit | 709855842068315bb2109d8f422a70c2b5ed1931 (patch) | |
| tree | ffa51758081e7ca85582e195678199a5ac9b44ba /src/desktop/view/Popup.cpp | |
| parent | 59438908de859e8f1901e864c1b1a3dcdeacf540 (diff) | |
desktop/layer: store aboveFs property and use that
Diffstat (limited to 'src/desktop/view/Popup.cpp')
| -rw-r--r-- | src/desktop/view/Popup.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/desktop/view/Popup.cpp b/src/desktop/view/Popup.cpp index 934baf50..bb409953 100644 --- a/src/desktop/view/Popup.cpp +++ b/src/desktop/view/Popup.cpp @@ -338,14 +338,14 @@ void CPopup::reposition() { m_resource->applyPositioning(box, COORDS); } -SP<Desktop::View::CWLSurface> CPopup::getT1Owner() const { +SP<Desktop::View::CWLSurface> CPopup::getT1Owner() const { if (m_windowOwner) return m_windowOwner->wlSurface(); else return m_layerOwner->wlSurface(); } -Vector2D CPopup::coordsRelativeToParent() const { +Vector2D CPopup::coordsRelativeToParent() const { Vector2D offset; if (!m_resource) @@ -365,11 +365,11 @@ Vector2D CPopup::coordsRelativeToParent() const { return offset; } -Vector2D CPopup::coordsGlobal() const { +Vector2D CPopup::coordsGlobal() const { return localToGlobal(coordsRelativeToParent()); } -Vector2D CPopup::localToGlobal(const Vector2D& rel) const { +Vector2D CPopup::localToGlobal(const Vector2D& rel) const { return t1ParentCoords() + rel; } @@ -483,7 +483,7 @@ bool CPopup::inert() const { return m_inert; } -PHLMONITOR CPopup::getMonitor() const { +PHLMONITOR CPopup::getMonitor() const { if (!m_windowOwner.expired()) return m_windowOwner->m_monitor.lock(); if (!m_layerOwner.expired()) |
