plugins: chase Hyprland

This commit is contained in:
Mihai Fufezan 2024-07-13 16:10:57 +03:00
parent 98cb18c6fc
commit 928164d6d2
Signed by: fufexan
SSH key fingerprint: SHA256:SdnKmEpJrDu1+2UO1QpB/Eg4HKcdDi6n+xSRqFNJVpg
3 changed files with 4 additions and 4 deletions

View file

@ -65,7 +65,7 @@ void CBordersPlusPlus::draw(CMonitor* pMonitor, float a) {
const auto PWINDOW = m_pWindow.lock(); const auto PWINDOW = m_pWindow.lock();
if (!PWINDOW->m_sSpecialRenderData.decorate) if (!PWINDOW->m_sWindowData.decorate.valueOrDefault())
return; return;
static std::vector<Hyprlang::INT* const*> PCOLORS; static std::vector<Hyprlang::INT* const*> PCOLORS;

View file

@ -389,7 +389,7 @@ void CHyprBar::draw(CMonitor* pMonitor, float a) {
const auto PWINDOW = m_pWindow.lock(); const auto PWINDOW = m_pWindow.lock();
if (!PWINDOW->m_sSpecialRenderData.decorate) if (!PWINDOW->m_sWindowData.decorate.valueOrDefault())
return; return;
static auto* const PCOLOR = (Hyprlang::INT* const*)HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprbars:bar_color")->getDataStaticPtr(); static auto* const PCOLOR = (Hyprlang::INT* const*)HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprbars:bar_color")->getDataStaticPtr();

View file

@ -84,7 +84,7 @@ void CTrail::draw(CMonitor* pMonitor, float a) {
const auto PWINDOW = m_pWindow.lock(); const auto PWINDOW = m_pWindow.lock();
if (!PWINDOW->m_sSpecialRenderData.decorate) if (!PWINDOW->m_sWindowData.decorate.valueOrDefault())
return; return;
static auto* const PBEZIERSTEP = (Hyprlang::FLOAT* const*)HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprtrails:bezier_step")->getDataStaticPtr(); static auto* const PBEZIERSTEP = (Hyprlang::FLOAT* const*)HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprtrails:bezier_step")->getDataStaticPtr();