diff options
author | Vaxry <[email protected]> | 2024-03-23 22:10:37 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-03-23 22:10:37 +0000 |
commit | 295128ab2a3c4ad1715bb7cd926880316f00e667 (patch) | |
tree | dbcc1859880ac84d565fc86b706d7e3da1340c94 /src/desktop/Window.cpp | |
parent | 2d5fda4810f706a1b6e2c0a1021ce57c8ad2e7a9 (diff) | |
download | Hyprland-295128ab2a3c4ad1715bb7cd926880316f00e667.tar.gz Hyprland-295128ab2a3c4ad1715bb7cd926880316f00e667.zip |
window: assign surface on create
ref #5076
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r-- | src/desktop/Window.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
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(); |