opt: optimize frame skip logic

This commit is contained in:
DreamMaoMao 2026-02-23 08:01:45 +08:00
parent 6b2d694b23
commit f8fa7a856c
3 changed files with 31 additions and 48 deletions

View file

@ -990,6 +990,10 @@ void resize(Client *c, struct wlr_box geo, int32_t interact) {
c->configure_serial = client_set_size(c, c->geom.width - 2 * c->bw,
c->geom.height - 2 * c->bw);
if (c->configure_serial != 0) {
c->mon->resizing_count_pending++;
}
if (c == grabc) {
c->animation.running = false;
c->need_output_flush = false;