From 295128ab2a3c4ad1715bb7cd926880316f00e667 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 23 Mar 2024 22:10:37 +0000 Subject: window: assign surface on create ref #5076 --- src/desktop/Window.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/desktop/Window.cpp') diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 567c3243..3145000c 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -468,8 +468,6 @@ void CWindow::onUnmap() { std::erase_if(g_pCompositor->m_vWindowFocusHistory, [&](const auto& other) { return other == this; }); - m_pWLSurface.unassign(); - hyprListener_unmapWindow.removeCallback(); if (*PCLOSEONLASTSPECIAL && g_pCompositor->getWindowsOnWorkspace(m_iWorkspaceID) == 0 && g_pCompositor->isWorkspaceSpecial(m_iWorkspaceID)) { @@ -493,9 +491,6 @@ void CWindow::onUnmap() { } void CWindow::onMap() { - - 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(); m_vRealSize.resetAllCallbacks(); -- cgit v1.2.3