fix(mango): keep layer animations off dms surfaces

- Stops Mango tweening the dot and island when layer_animations is on
Port 2.0

(cherry picked from commit ba7b3620a8)
This commit is contained in:
purian23
2026-10-23 08:41:12 +00:00
committed by dux-ci[bot]
parent ec4e04f06f
commit d4ecaf82d4
2 changed files with 12 additions and 5 deletions
@@ -6,3 +6,7 @@ gap_inner_vertical=5
gap_outer_horizontal=5
gap_outer_vertical=5
border_px=2
# layer_animations would tween every DMS layer move; override with no_animation:0 rules after the source lines.
layer_rule=no_animation:1,layer_name:^(quickshell)$
layer_rule=no_animation:1,layer_name:^dms:.*
+8 -5
View File
@@ -633,9 +633,12 @@ Singleton {
const gapsOut = (gapsOverride >= 0 && SettingsData.mangoLayoutGapsOutOverride >= 0) ? SettingsData.mangoLayoutGapsOutOverride : gapsIn;
const borderSize = (typeof SettingsData !== "undefined" && SettingsData.mangoLayoutBorderSize >= 0) ? SettingsData.mangoLayoutBorderSize : defaultBorderSize;
// layer_animations would tween the dot lift and the island sheet
let content = `# Auto-generated by DMS - do not edit manually
border_radius=${cornerRadius}
border_px=${borderSize}
layer_rule=no_animation:1,layer_name:^(quickshell)$
layer_rule=no_animation:1,layer_name:^dms:.*
`;
if (manageGaps)
@@ -738,11 +741,11 @@ cursor_size=${size}`;
const flag = value => value ? 1 : 0;
const profile = name => name === "flat" ? 1 : name === "adaptive" ? 2 : -1;
const scrollMethod = name => ({
"no-scroll": 0,
"two-finger": 1,
"edge": 2,
"on-button-down": 4
})[name] ?? -1;
"no-scroll": 0,
"two-finger": 1,
"edge": 2,
"on-button-down": 4
})[name] ?? -1;
const clickMethod = name => name === "button-areas" ? 1 : name === "clickfinger" ? 2 : -1;
const lines = [];
// -1 is a "default" choice: the key stays out so Mango's own default applies