core: Fix SEGV/ABRT core dump when exiting (#4823)

* reset input manager first

* move reset
This commit is contained in:
thejch 2024-02-23 18:50:54 -08:00 committed by GitHub
parent f27054c13e
commit d92da7959a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -414,6 +414,8 @@ void CCompositor::cleanup() {
removeAllSignals();
g_pInputManager.reset();
wl_display_destroy_clients(g_pCompositor->m_sWLDisplay);
g_pDecorationPositioner.reset();
@ -425,7 +427,6 @@ void CCompositor::cleanup() {
g_pProtocolManager.reset();
g_pHyprRenderer.reset();
g_pHyprOpenGL.reset();
g_pInputManager.reset();
g_pThreadManager.reset();
g_pConfigManager.reset();
g_pLayoutManager.reset();