socket2: add monitorremovedv2 event (#10229)
This commit is contained in:
parent
997fefbc11
commit
ec93f8a1cd
1 changed files with 1 additions and 0 deletions
|
|
@ -279,6 +279,7 @@ void CMonitor::onDisconnect(bool destroy) {
|
||||||
if (g_pCompositor->m_isShuttingDown)
|
if (g_pCompositor->m_isShuttingDown)
|
||||||
return;
|
return;
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"monitorremoved", m_name});
|
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());
|
EMIT_HOOK_EVENT("monitorRemoved", m_self.lock());
|
||||||
g_pCompositor->arrangeMonitors();
|
g_pCompositor->arrangeMonitors();
|
||||||
}};
|
}};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue