term: enabling application synchronized updates clear pending grid refresh

This fixes issues with de-synchronized frames being rendered; we may
have scheduled a redraw earlier, that hasn’t yet triggered (probably
because we’re waiting for a frame callback), when we enable
application synchronized updates.

This means we risk rendering a partially updated state when the frame
callback finally arrives, if the application hasn’t yet ended its
synchronized update.
This commit is contained in:
Daniel Eklöf 2020-12-14 19:05:03 +01:00
parent 602dbdb9f6
commit 6c8b034aff
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 15 additions and 10 deletions

View file

@ -131,6 +131,8 @@ means foot can be PGO:d in e.g. sandboxed build scripts. See
dragging the cursor outside the grid.
* Parsing of the sub-parameter versions of indexed SGR color escapes
(e.g. `\E[38:5...m`)
* Frames occasionally being rendered while application synchronized
updates is in effect.
### Security