mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-26 07:58:16 -04:00
opt: optimize frame skip logic
This commit is contained in:
parent
d2d5cfc5c8
commit
ebdfb14654
3 changed files with 31 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue