diff --git a/hyprbars/barDeco.cpp b/hyprbars/barDeco.cpp index 135c9d1..887429a 100644 --- a/hyprbars/barDeco.cpp +++ b/hyprbars/barDeco.cpp @@ -651,13 +651,13 @@ void CHyprBar::updateRules() { m_bTitleColorChanged = true; } -void CHyprBar::applyRule(const SWindowRule& r) { - auto arg = r.szRule.substr(r.szRule.find_first_of(' ') + 1); +void CHyprBar::applyRule(const SP& r) { + auto arg = r->szRule.substr(r->szRule.find_first_of(' ') + 1); - if (r.szRule == "plugin:hyprbars:nobar") + if (r->szRule == "plugin:hyprbars:nobar") m_bHidden = true; - else if (r.szRule.starts_with("plugin:hyprbars:bar_color")) + else if (r->szRule.starts_with("plugin:hyprbars:bar_color")) m_bForcedBarColor = CHyprColor(configStringToInt(arg).value_or(0)); - else if (r.szRule.starts_with("plugin:hyprbars:title_color")) + else if (r->szRule.starts_with("plugin:hyprbars:title_color")) m_bForcedTitleColor = CHyprColor(configStringToInt(arg).value_or(0)); } diff --git a/hyprbars/barDeco.hpp b/hyprbars/barDeco.hpp index cebf6ba..f129aed 100644 --- a/hyprbars/barDeco.hpp +++ b/hyprbars/barDeco.hpp @@ -42,7 +42,7 @@ class CHyprBar : public IHyprWindowDecoration { PHLWINDOW getOwner(); void updateRules(); - void applyRule(const SWindowRule&); + void applyRule(const SP&); private: SBoxExtents m_seExtents; diff --git a/hyprpm.toml b/hyprpm.toml index 36c1c59..986a9d9 100644 --- a/hyprpm.toml +++ b/hyprpm.toml @@ -23,7 +23,8 @@ commit_pins = [ ["4520b30d498daca8079365bdb909a8dea38e8d55", "9215288eb2ded9d0c08d468ea90ba68f43162c67"], # 0.44.1 ["a425fbebe4cf4238e48a42f724ef2208959d66cf", "44859f877739c05d031fcab4a2991ec004fa9bc4"], # 0.45.0 ["500d2a3580388afc8b620b0a3624147faa34f98b", "344a69db96fa8c6dc3b8f1f8f5a75f6eb441cbf2"], # 0.45.1 - ["12f9a0d0b93f691d4d9923716557154d74777b0a", "344a69db96fa8c6dc3b8f1f8f5a75f6eb441cbf2"] # 0.45.2 + ["12f9a0d0b93f691d4d9923716557154d74777b0a", "344a69db96fa8c6dc3b8f1f8f5a75f6eb441cbf2"], # 0.45.2 + ["788ae588979c2a1ff8a660f16e3c502ef5796755", "17ef806444fee729d00b3ba5cb8c623b7fbb699b"] # 0.46.0 ] [borders-plus-plus]