mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
socket2: add monitorremovedv2 event (#10229)
This commit is contained in:
committed by
GitHub
parent
997fefbc11
commit
ec93f8a1cd
@@ -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();
|
||||
}};
|
||||
|
Reference in New Issue
Block a user