=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.884 retrieving revision 1.885 diff -u -r1.884 -r1.885 --- src/usr.bin/tmux/tmux.h 2019/04/28 20:05:50 1.884 +++ src/usr.bin/tmux/tmux.h 2019/05/03 14:51:31 1.885 @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.884 2019/04/28 20:05:50 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.885 2019/05/03 14:51:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1052,6 +1052,12 @@ u_int sgr_b; }; +/* Key event. */ +struct key_event { + key_code key; + struct mouse_event m; +}; + /* TTY information. */ struct tty_key { char ch; @@ -1143,7 +1149,8 @@ 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 *); @@ -1864,7 +1871,7 @@ /* 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 *); @@ -2002,7 +2009,7 @@ 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 *);