summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
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();