Skip to content

Commit

Permalink
add monitoraddedv2 event
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Feb 14, 2024
1 parent 202bfe1 commit d6bd7e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/helpers/Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6bd7e4

Please sign in to comment.