summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-29 15:07:11 +0000
committerVaxry <vaxry@vaxry.net>2024-02-29 15:07:14 +0000
commit6916d0a6a316d602ff766abe5abffacf929b6801 (patch)
tree42a3008a1cc8925dd97ce3045f2715ae56bc22c9 /src/Window.cpp
parentbcec082a1c20da4b69d56b0f0f98e00ecb3b5c96 (diff)
surface: unify owners
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp3
1 files changed, 1 insertions, 2 deletions
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();