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

@@ -13,8 +13,8 @@ CHyprEasyLabel::CHyprEasyLabel(PHLWINDOW pWindow, SMotionActionDesc *actionDesc)
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID);
PMONITOR->scheduledRecalc = true;
std::string windowAddr = std::format("0x{:x}", (uintptr_t)pWindow.get());
m_szActionCmd = std::vformat(actionDesc->commandString, std::make_format_args(windowAddr));
m_szWindowAddress = std::format("0x{:x}", (uintptr_t)pWindow.get());
m_szActionCmd = std::vformat(actionDesc->commandString, std::make_format_args(m_szWindowAddress));
m_iTextSize = actionDesc->textSize;
m_cTextColor = actionDesc->textColor;
m_cBackgroundColor = actionDesc->backgroundColor;