socket2: add monitorremovedv2 event (#10229)

This commit is contained in:
shane blackthorne
2025-05-05 18:52:36 -07:00
committed by GitHub
parent 997fefbc11
commit ec93f8a1cd

View File

@@ -279,6 +279,7 @@ void CMonitor::onDisconnect(bool destroy) {
if (g_pCompositor->m_isShuttingDown)
return;
g_pEventManager->postEvent(SHyprIPCEvent{"monitorremoved", m_name});
g_pEventManager->postEvent(SHyprIPCEvent{"monitorremovedv2", std::format("{},{},{}", m_id, m_name, m_shortDescription)});
EMIT_HOOK_EVENT("monitorRemoved", m_self.lock());
g_pCompositor->arrangeMonitors();
}};