From 71496a0a3c31d9e0b7ce55a21713304fc23a46cd Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 1 Mar 2023 13:47:40 +0000 Subject: [PATCH] Fix fatal aborts with X11 OR windows --- src/events/Windows.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 7c312b53..45de27d0 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -715,6 +715,8 @@ void Events::listener_destroyWindow(void* owner, void* data) { PWINDOW->hyprListener_mapWindow.removeCallback(); PWINDOW->hyprListener_unmapWindow.removeCallback(); PWINDOW->hyprListener_destroyWindow.removeCallback(); + PWINDOW->hyprListener_configureX11.removeCallback(); + PWINDOW->hyprListener_setOverrideRedirect.removeCallback(); g_pLayoutManager->getCurrentLayout()->onWindowRemoved(PWINDOW); @@ -970,9 +972,9 @@ void Events::listener_unmanagedSetGeometry(void* owner, void* data) { void Events::listener_setOverrideRedirect(void* owner, void* data) { const auto PWINDOW = (CWindow*)owner; - if (!PWINDOW->m_bIsMapped && PWINDOW->m_uSurface.xwayland->mapped) { - Events::listener_mapWindow(PWINDOW, nullptr); - } + //if (!PWINDOW->m_bIsMapped && PWINDOW->m_uSurface.xwayland->mapped) { + // Events::listener_mapWindow(PWINDOW, nullptr); + //} } void Events::listener_surfaceXWayland(wl_listener* listener, void* data) {