opt: optimize frame skip logic

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

View file

@ -885,6 +885,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;