diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-05-22 21:05:30 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-05-22 21:05:30 +0000 |
commit | 17da2f7d5f16a20e70539248db9803ba3ac17350 (patch) | |
tree | 513cbc6fab671bf91d02a678160a34ccedae2dc2 /tty-keys.c | |
parent | fff7c0b2768523f6732e8d3fa409c431aadd7bfc (diff) | |
download | rtmux-17da2f7d5f16a20e70539248db9803ba3ac17350.tar.gz rtmux-17da2f7d5f16a20e70539248db9803ba3ac17350.tar.bz2 rtmux-17da2f7d5f16a20e70539248db9803ba3ac17350.zip |
Sync OpenBSD patchset 1121:
Store client in tty struct directly instead of using a callback function
pointer.
Diffstat (limited to 'tty-keys.c')
-rw-r--r-- | tty-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -580,7 +580,7 @@ handle_key: evtimer_del(&tty->key_timer); if (key != KEYC_NONE) - tty->key_callback(key, &tty->mouse_event, tty->key_data); + server_client_handle_key(tty->client, key); tty->flags &= ~TTY_ESCAPE; return (1); @@ -607,7 +607,7 @@ tty_keys_callback(unused int fd, unused short events, void *data) int tty_keys_mouse(struct tty *tty, const char *buf, size_t len, size_t *size) { - struct mouse_event *m = &tty->mouse_event; + struct mouse_event *m = &tty->mouse; struct utf8_data utf8data; u_int i, value; |