diff options
author | vaxerski <[email protected]> | 2023-03-17 23:16:13 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-17 23:16:13 +0000 |
commit | e5870d47c74150aa744ed55f9b7e58713d968209 (patch) | |
tree | 227fda73f787873bc97b64be333d0e0f7d596ec7 /src/helpers/WLClasses.cpp | |
parent | 91a565c7b0957968d686fccf8f3a5166b9c3fec9 (diff) | |
download | Hyprland-e5870d47c74150aa744ed55f9b7e58713d968209.tar.gz Hyprland-e5870d47c74150aa744ed55f9b7e58713d968209.zip |
LS: add blur and ignorezero rules
Diffstat (limited to 'src/helpers/WLClasses.cpp')
-rw-r--r-- | src/helpers/WLClasses.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/helpers/WLClasses.cpp b/src/helpers/WLClasses.cpp index 9b6926e2..29e10a54 100644 --- a/src/helpers/WLClasses.cpp +++ b/src/helpers/WLClasses.cpp @@ -5,4 +5,19 @@ SLayerSurface::SLayerSurface() { alpha.create(AVARTYPE_FLOAT, g_pConfigManager->getAnimationPropertyConfig("fadeIn"), nullptr, AVARDAMAGE_ENTIRE); alpha.m_pLayer = this; alpha.registerVar(); +} + +void SLayerSurface::applyRules() { + noAnimations = false; + forceBlur = false; + ignoreZero = false; + + for (auto& rule : g_pConfigManager->getMatchingRules(this)) { + if (rule.rule == "noanim") + noAnimations = true; + else if (rule.rule == "blur") + forceBlur = true; + else if (rule.rule == "ignorezero") + ignoreZero = true; + } }
\ No newline at end of file |