fix: fix ov scale when disable animaiton
Some checks failed
Sync website / sync-website (push) Has been cancelled
Sync wiki / sync-wiki (push) Has been cancelled

This commit is contained in:
DreamMaoMao 2026-05-22 09:19:17 +08:00
parent da1e1cadf7
commit 4b2ab2ff2f

View file

@ -825,7 +825,7 @@ void client_apply_clip(Client *c, float factor) {
enum corner_location current_corner_location =
set_client_corner_location(c);
if (!config.animations) {
if (!config.animations && !c->mon->isoverview) {
c->animation.running = false;
c->need_output_flush = false;
c->animainit_geom = c->current = c->pending = c->animation.current =
@ -910,7 +910,7 @@ void client_apply_clip(Client *c, float factor) {
buffer_data.height = clip_box.height;
buffer_data.corner_location = current_corner_location;
if (factor == 1.0) {
if (factor == 1.0 && !c->mon->isoverview) {
buffer_data.width_scale = 1.0;
buffer_data.height_scale = 1.0;
} else {