diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-02-29 15:07:11 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-02-29 15:07:14 +0000 |
| commit | 6916d0a6a316d602ff766abe5abffacf929b6801 (patch) | |
| tree | 42a3008a1cc8925dd97ce3045f2715ae56bc22c9 /src/desktop/Popup.cpp | |
| parent | bcec082a1c20da4b69d56b0f0f98e00ecb3b5c96 (diff) | |
surface: unify owners
Diffstat (limited to 'src/desktop/Popup.cpp')
| -rw-r--r-- | src/desktop/Popup.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/desktop/Popup.cpp b/src/desktop/Popup.cpp index a4b63826..ad0a1a25 100644 --- a/src/desktop/Popup.cpp +++ b/src/desktop/Popup.cpp @@ -10,7 +10,7 @@ CPopup::CPopup(SLayerSurface* pOwner) : m_pLayerOwner(pOwner) { CPopup::CPopup(wlr_xdg_popup* popup, CPopup* pOwner) : m_pParent(pOwner), m_pWLR(popup) { m_pWLR->base->data = this; - m_sWLSurface.assign(popup->base->surface); + m_sWLSurface.assign(popup->base->surface, this); m_pLayerOwner = pOwner->m_pLayerOwner; m_pWindowOwner = pOwner->m_pWindowOwner; @@ -222,4 +222,8 @@ void CPopup::recheckChildrenRecursive() { c->onCommit(); c->recheckChildrenRecursive(); } +} + +Vector2D CPopup::size() { + return m_vLastSize; }
\ No newline at end of file |
