render: resize: ignore ptmx read events during interactive resize

This commit is contained in:
Daniel Eklöf 2022-10-06 17:23:56 +02:00
parent 3565cbd636
commit f4f1989b6e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 19 additions and 0 deletions

View file

@ -233,6 +233,18 @@ static struct timespec last = {0};
static bool cursor_blink_rearm_timer(struct terminal *term);
void
term_ptmx_pause(struct terminal *term)
{
fdm_event_del(term->fdm, term->ptmx, EPOLLIN);
}
void
term_ptmx_resume(struct terminal *term)
{
fdm_event_add(term->fdm, term->ptmx, EPOLLIN);
}
/* Externally visible, but not declared in terminal.h, to enable pgo
* to call this function directly */
bool