mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
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:
parent
602dbdb9f6
commit
6c8b034aff
3 changed files with 15 additions and 10 deletions
|
|
@ -410,7 +410,6 @@ struct terminal {
|
|||
struct {
|
||||
bool enabled;
|
||||
int timer_fd;
|
||||
bool flipped;
|
||||
} app_sync_updates;
|
||||
|
||||
/* Render threads + synchronization primitives */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue