From 10db5a4fdbb0150af1165ea5591081c5182bb416 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 5 Jun 2023 20:51:47 +0200 Subject: [PATCH] xwayland: disconnect events on destroy thanks Kirill Primak --- src/events/Windows.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index c4111291..b8ecbd76 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -781,6 +781,8 @@ void Events::listener_destroyWindow(void* owner, void* data) { PWINDOW->hyprListener_destroyWindow.removeCallback(); PWINDOW->hyprListener_configureX11.removeCallback(); PWINDOW->hyprListener_setOverrideRedirect.removeCallback(); + PWINDOW->hyprListener_associateX11.removeCallback(); + PWINDOW->hyprListener_dissociateX11.removeCallback(); g_pLayoutManager->getCurrentLayout()->onWindowRemoved(PWINDOW);