summaryrefslogtreecommitdiff
path: root/src/desktop/LayerSurface.cpp
diff options
context:
space:
mode:
authordarkwater <dark@dark.red>2024-09-09 11:10:08 +0200
committerGitHub <noreply@github.com>2024-09-09 10:10:08 +0100
commit04421063af2941c6e27e6dca2bdc2c387778a3a5 (patch)
tree5a8679356e295afb9c59a7fd49c65ef1a57a8f3d /src/desktop/LayerSurface.cpp
parent43e1415e715bb6c6c4ea722ba839210938ac2b07 (diff)
config: add order rule for layers (#7697)
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
-rw-r--r--src/desktop/LayerSurface.cpp5
1 files changed, 5 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"); }
}
}
}