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/Window.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Window.cpp') diff --git a/src/Window.cpp b/src/Window.cpp index 6742be60..df357212 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -481,8 +481,7 @@ void CWindow::onUnmap() { void CWindow::onMap() { - m_pWLSurface.assign(g_pXWaylandManager->getWindowSurface(this)); - m_pWLSurface.m_pOwner = this; + m_pWLSurface.assign(g_pXWaylandManager->getWindowSurface(this), this); // JIC, reset the callbacks. If any are set, we'll make sure they are cleared so we don't accidentally unset them. (In case a window got remapped) m_vRealPosition.resetAllCallbacks(); -- cgit v1.2.3