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();
if (!PWINDOW->m_sSpecialRenderData.decorate)
if (!PWINDOW->m_sWindowData.decorate.valueOrDefault())
return;
static std::vector<Hyprlang::INT* const*> 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);
}
}

View file

@ -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();

View file

@ -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();