Skip to content

Commit

Permalink
plugins: chase Hyprland
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Jul 13, 2024
1 parent 98cb18c commit 928164d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions borders-plus-plus/borderDeco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion hyprbars/barDeco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion hyprtrails/trail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 928164d

Please sign in to comment.