From 928164d6d2560a20328c74b6b3e5da271e8e0b5a Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sat, 13 Jul 2024 16:10:57 +0300 Subject: [PATCH] plugins: chase Hyprland --- borders-plus-plus/borderDeco.cpp | 4 ++-- hyprbars/barDeco.cpp | 2 +- hyprtrails/trail.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/borders-plus-plus/borderDeco.cpp b/borders-plus-plus/borderDeco.cpp index d5835bf..120a9f1 100644 --- a/borders-plus-plus/borderDeco.cpp +++ b/borders-plus-plus/borderDeco.cpp @@ -65,7 +65,7 @@ void CBordersPlusPlus::draw(CMonitor* pMonitor, float a) { const auto PWINDOW = m_pWindow.lock(); - if (!PWINDOW->m_sSpecialRenderData.decorate) + if (!PWINDOW->m_sWindowData.decorate.valueOrDefault()) return; static std::vector PCOLORS; @@ -140,4 +140,4 @@ void CBordersPlusPlus::updateWindow(PHLWINDOW pWindow) { void CBordersPlusPlus::damageEntire() { CBox dm = m_bLastRelativeBox.copy().translate(m_vLastWindowPos).expand(2); g_pHyprRenderer->damageBox(&dm); -} \ No newline at end of file +} diff --git a/hyprbars/barDeco.cpp b/hyprbars/barDeco.cpp index 3e75de5..41a7707 100644 --- a/hyprbars/barDeco.cpp +++ b/hyprbars/barDeco.cpp @@ -389,7 +389,7 @@ void CHyprBar::draw(CMonitor* pMonitor, float a) { const auto PWINDOW = m_pWindow.lock(); - if (!PWINDOW->m_sSpecialRenderData.decorate) + if (!PWINDOW->m_sWindowData.decorate.valueOrDefault()) return; static auto* const PCOLOR = (Hyprlang::INT* const*)HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprbars:bar_color")->getDataStaticPtr(); diff --git a/hyprtrails/trail.cpp b/hyprtrails/trail.cpp index 53d749d..f744405 100644 --- a/hyprtrails/trail.cpp +++ b/hyprtrails/trail.cpp @@ -84,7 +84,7 @@ void CTrail::draw(CMonitor* pMonitor, float a) { const auto PWINDOW = m_pWindow.lock(); - if (!PWINDOW->m_sSpecialRenderData.decorate) + if (!PWINDOW->m_sWindowData.decorate.valueOrDefault()) return; static auto* const PBEZIERSTEP = (Hyprlang::FLOAT* const*)HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprtrails:bezier_step")->getDataStaticPtr();