opt: Avoid unnecessary animation calculations

This commit is contained in:
DreamMaoMao 2026-07-07 13:31:53 +08:00
parent 516052ff14
commit 1da0cfba47
3 changed files with 313 additions and 501 deletions

View file

@ -2148,7 +2148,8 @@ int32_t dwindle_set_split_direction(Client *c, bool istoggle, bool horizontal) {
leaf->custom_leaf_split_h = false;
}
bool hit_no_border = check_hit_no_border(c);
client_draw_split_border(c, hit_no_border);
struct ivec2 offsets = compute_edge_offsets(c);
client_draw_split_border(c, hit_no_border, offsets);
return 0;
}