From d6bd7e44305316c0e632eb546b7c26c63f8c03d1 Mon Sep 17 00:00:00 2001 From: Jacob Birkett Date: Thu, 8 Feb 2024 03:01:35 -0700 Subject: [PATCH] add monitoraddedv2 event --- src/helpers/Monitor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 0f1a3b7a40a..94b9866ae2b 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -169,6 +169,7 @@ void CMonitor::onConnect(bool noRule) { // g_pEventManager->postEvent(SHyprIPCEvent{"monitoradded", szName}); + g_pEventManager->postEvent(SHyprIPCEvent{"monitoraddedv2", std::format("{},{}", szName, szShortDescription)}); EMIT_HOOK_EVENT("monitorAdded", this); if (!g_pCompositor->m_pLastMonitor) // set the last monitor if it isnt set yet