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

11
tmux.h
View File

@@ -1096,9 +1096,9 @@ struct window_mode_entry {
/* Type of request to client. */
enum input_request_type {
INPUT_REQUEST_PALETTE
INPUT_REQUEST_PALETTE,
INPUT_REQUEST_QUEUE
};
#define INPUT_REQUEST_TYPES (1)
/* Palette request reply data. */
struct input_request_palette_data {
@@ -1108,11 +1108,6 @@ struct input_request_palette_data {
/* Request sent to client on behalf of pane. */
TAILQ_HEAD(input_requests, input_request);
struct input_request_list {
struct client *c;
enum input_request_type type;
struct input_requests requests;
};
/* Offsets into pane buffer. */
struct window_pane_offset {
@@ -1942,7 +1937,7 @@ struct client {
struct status_line status;
enum client_theme theme;
struct input_request_list input_requests[INPUT_REQUEST_TYPES];
struct input_requests input_requests;
#define CLIENT_TERMINAL 0x1
#define CLIENT_LOGIN 0x2