mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-07-09 00:06:10 -04:00
term: ptmx: don't set 'pending' flag when app sync updates are in use
This commit is contained in:
parent
a2774878ef
commit
29c781b832
1 changed files with 34 additions and 38 deletions
12
terminal.c
12
terminal.c
|
|
@ -172,6 +172,9 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
|
|||
vt_from_slave(term, buf, count);
|
||||
}
|
||||
|
||||
if (!term->render.app_sync_updates.enabled &&
|
||||
!term->render.app_sync_updates.flipped)
|
||||
{
|
||||
/*
|
||||
* We likely need to re-render. But, we don't want to do it
|
||||
* immediately. Often, a single client update is done through
|
||||
|
|
@ -200,13 +203,6 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
|
|||
* has any effect when the renderer is idle.
|
||||
*/
|
||||
if (term->window->frame_callback == NULL) {
|
||||
if (term->render.app_sync_updates.enabled ||
|
||||
term->render.app_sync_updates.flipped)
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
else {
|
||||
/* First timeout - reset each time we receive input. */
|
||||
|
||||
#if PTMX_TIMING
|
||||
|
|
@ -238,9 +234,9 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
|
|||
NULL);
|
||||
term->delayed_render_timer.is_armed = true;
|
||||
}
|
||||
}
|
||||
} else
|
||||
term->render.pending.grid = true;
|
||||
}
|
||||
|
||||
if (hup) {
|
||||
if (term->hold_at_exit) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue