mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-19 08:30:22 -07:00
socket2: add monitorremovedv2 event (#10229)
This commit is contained in:
parent
997fefbc11
commit
ec93f8a1cd
@ -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…
x
Reference in New Issue
Block a user