Add IPC event when a window is selected

This commit is contained in:
Zakk
2024-06-10 03:30:13 -04:00
parent ebe3c7ca69
commit 22f8b82b0e
3 changed files with 4 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ void easymotionActionDispatch(std::string args)
{
for (auto &ml : g_pGlobalState->motionLabels) {
if (ml->m_szLabel == args) {
g_pEventManager->postEvent(SHyprIPCEvent{"easymotionselect", std::format("{},{}", ml->m_szWindowAddress, ml->m_szLabel)});
g_pKeybindManager->m_mDispatchers["exec"](ml->m_szActionCmd);
easymotionExitDispatch("");
break;