From 02b03c91e3014cc6ae7b8386087dd3ca916ce669 Mon Sep 17 00:00:00 2001 From: Zakk Date: Mon, 28 Oct 2024 02:05:02 -0400 Subject: [PATCH] Chase hyprland --- easymotionDeco.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easymotionDeco.cpp b/easymotionDeco.cpp index e1a0148..0e40cfd 100644 --- a/easymotionDeco.cpp +++ b/easymotionDeco.cpp @@ -11,7 +11,7 @@ CHyprEasyLabel::CHyprEasyLabel(PHLWINDOW pWindow, SMotionActionDesc *actionDesc) : IHyprWindowDecoration(pWindow) { m_pWindow = pWindow; - const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID); + const auto PMONITOR = pWindow->m_pMonitor.lock(); PMONITOR->scheduledRecalc = true; m_szWindowAddress = std::format("0x{:x}", (uintptr_t)pWindow.get()); m_szActionCmd = std::vformat(actionDesc->commandString, std::make_format_args(m_szWindowAddress));