Make requests to the external terminal one queue instead of one by type,

and include any other requests as well so that ordering is maintained.
This commit is contained in:
nicm
2025-11-12 20:41:06 +00:00
parent 3c9e10139f
commit 66279c124e
3 changed files with 137 additions and 125 deletions

View File

@@ -282,7 +282,6 @@ struct client *
server_client_create(int fd)
{
struct client *c;
u_int i;
setblocking(fd, 0);
@@ -316,11 +315,7 @@ server_client_create(int fd)
evtimer_set(&c->repeat_timer, server_client_repeat_timer, c);
evtimer_set(&c->click_timer, server_client_click_timer, c);
for (i = 0; i < INPUT_REQUEST_TYPES; i++) {
c->input_requests[i].c = c;
c->input_requests[i].type = i;
TAILQ_INIT(&c->input_requests[i].requests);
}
TAILQ_INIT(&c->input_requests);
TAILQ_INSERT_TAIL(&clients, c, entry);
log_debug("new client %p", c);