summaryrefslogtreecommitdiff
path: root/src/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop')
-rw-r--r--src/desktop/LayerSurface.cpp5
-rw-r--r--src/desktop/LayerSurface.hpp1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp
index 155a2605..0e7e71b6 100644
--- a/src/desktop/LayerSurface.cpp
+++ b/src/desktop/LayerSurface.cpp
@@ -394,6 +394,11 @@ void CLayerSurface::applyRules() {
} else if (rule.rule.starts_with("animation")) {
CVarList vars{rule.rule, 2, 's'};
animationStyle = vars[1];
+ } else if (rule.rule.starts_with("order")) {
+ CVarList vars{rule.rule, 2, 's'};
+ try {
+ order = std::stoi(vars[1]);
+ } catch (...) { Debug::log(ERR, "Invalid value passed to order"); }
}
}
}
diff --git a/src/desktop/LayerSurface.hpp b/src/desktop/LayerSurface.hpp
index 84935b34..e0f17039 100644
--- a/src/desktop/LayerSurface.hpp
+++ b/src/desktop/LayerSurface.hpp
@@ -55,6 +55,7 @@ class CLayerSurface {
bool ignoreAlpha = false;
float ignoreAlphaValue = 0.f;
bool dimAround = false;
+ int64_t order = 0;
std::optional<std::string> animationStyle;