diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-05-03 17:04:11 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-05-03 17:04:11 +0100 |
commit | fff85d854e7a29ab1fbf0b3867a38b52b5cf60c8 (patch) | |
tree | da81ec2025f9be5ce0dcb5513c8b1e9581a3b134 /tmux.h | |
parent | 4d16df931274e12a42348f3bc09d9810a52e2e00 (diff) | |
parent | cf6075fb29fcd86f11a1f2cc6e906c62f39d4032 (diff) |
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -1054,6 +1054,12 @@ struct mouse_event { u_int sgr_b; }; +/* Key event. */ +struct key_event { + key_code key; + struct mouse_event m; +}; + /* TTY information. */ struct tty_key { char ch; @@ -1145,7 +1151,8 @@ struct tty { TTY_UNKNOWN } term_type; - struct mouse_event mouse; + u_int mouse_last_x; + u_int mouse_last_y; int mouse_drag_flag; void (*mouse_drag_update)(struct client *, struct mouse_event *); @@ -1286,7 +1293,7 @@ struct cmdq_shared { /* Command queue item. */ typedef enum cmd_retval (*cmdq_cb) (struct cmdq_item *, void *); struct cmdq_item { - const char *name; + char *name; struct cmdq_list *queue; struct cmdq_item *next; @@ -1866,7 +1873,7 @@ const char *tty_acs_get(struct tty *, u_char); /* tty-keys.c */ void tty_keys_build(struct tty *); void tty_keys_free(struct tty *); -key_code tty_keys_next(struct tty *); +int tty_keys_next(struct tty *); /* arguments.c */ void args_set(struct args *, u_char, const char *); @@ -2004,7 +2011,7 @@ void server_client_set_identify(struct client *, u_int); void server_client_set_key_table(struct client *, const char *); const char *server_client_get_key_table(struct client *); int server_client_check_nested(struct client *); -void server_client_handle_key(struct client *, key_code); +enum cmd_retval server_client_key_callback(struct cmdq_item *, void *); struct client *server_client_create(int); int server_client_open(struct client *, char **); void server_client_unref(struct client *); |