From 6916d0a6a316d602ff766abe5abffacf929b6801 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 29 Feb 2024 15:07:11 +0000 Subject: surface: unify owners --- src/desktop/Popup.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/desktop/Popup.cpp') 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 -- cgit v1.2.3