xwayland: disconnect events on destroy

thanks Kirill Primak
This commit is contained in:
Vaxry 2023-06-05 20:51:47 +02:00
parent 1a4e6e6a4b
commit 10db5a4fdb

View file

@ -781,6 +781,8 @@ void Events::listener_destroyWindow(void* owner, void* data) {
PWINDOW->hyprListener_destroyWindow.removeCallback(); PWINDOW->hyprListener_destroyWindow.removeCallback();
PWINDOW->hyprListener_configureX11.removeCallback(); PWINDOW->hyprListener_configureX11.removeCallback();
PWINDOW->hyprListener_setOverrideRedirect.removeCallback(); PWINDOW->hyprListener_setOverrideRedirect.removeCallback();
PWINDOW->hyprListener_associateX11.removeCallback();
PWINDOW->hyprListener_dissociateX11.removeCallback();
g_pLayoutManager->getCurrentLayout()->onWindowRemoved(PWINDOW); g_pLayoutManager->getCurrentLayout()->onWindowRemoved(PWINDOW);