mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-12 23:00:36 +01:00
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)
|
||||
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();
|
||||
}};
|
||||
|
|
Loading…
Reference in a new issue