Skip to content

Commit

Permalink
add monitor ID as first param of monitoraddedv2
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Feb 14, 2024
1 parent d6bd7e4 commit 1156e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void CMonitor::onConnect(bool noRule) {
//

g_pEventManager->postEvent(SHyprIPCEvent{"monitoradded", szName});
g_pEventManager->postEvent(SHyprIPCEvent{"monitoraddedv2", std::format("{},{}", szName, szShortDescription)});
g_pEventManager->postEvent(SHyprIPCEvent{"monitoraddedv2", std::format("{},{},{}", ID, szName, szShortDescription)});
EMIT_HOOK_EVENT("monitorAdded", this);

if (!g_pCompositor->m_pLastMonitor) // set the last monitor if it isnt set yet
Expand Down

0 comments on commit 1156e9b

Please sign in to comment.