diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-12-16 15:56:04 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-12-16 15:56:04 +0000 |
| commit | cbfdbe9fa162437ac80d87e7cf2669f3dfa6145b (patch) | |
| tree | e376e8c160ad971a777754a75463adc2d0b76469 /src/desktop/view/Popup.hpp | |
| parent | c94a981711009078c9b5f77f685f1483222071b4 (diff) | |
desktop/popup: fix invalid surface coord
Diffstat (limited to 'src/desktop/view/Popup.hpp')
| -rw-r--r-- | src/desktop/view/Popup.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/desktop/view/Popup.hpp b/src/desktop/view/Popup.hpp index 86b11acb..1654fc60 100644 --- a/src/desktop/view/Popup.hpp +++ b/src/desktop/view/Popup.hpp @@ -30,10 +30,10 @@ namespace Desktop::View { virtual bool desktopComponent() const; virtual std::optional<CBox> surfaceLogicalBox() const; - SP<Desktop::View::CWLSurface> getT1Owner(); - Vector2D coordsRelativeToParent(); - Vector2D coordsGlobal(); - PHLMONITOR getMonitor(); + SP<Desktop::View::CWLSurface> getT1Owner() const; + Vector2D coordsRelativeToParent() const; + Vector2D coordsGlobal() const; + PHLMONITOR getMonitor() const; Vector2D size() const; @@ -99,7 +99,7 @@ namespace Desktop::View { void sendScale(); void fullyDestroy(); - Vector2D localToGlobal(const Vector2D& rel); + Vector2D localToGlobal(const Vector2D& rel) const; Vector2D t1ParentCoords() const; static void bfHelper(std::vector<SP<CPopup>> const& nodes, std::function<void(SP<CPopup>, void*)> fn, void* data); }; |
