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