From 620740ce5871b73220b41e47770b8504f66826e4 Mon Sep 17 00:00:00 2001 From: Nicolas Viennot Date: Thu, 31 Dec 2015 11:36:10 -0500 Subject: [PATCH] Send keys to the active pane --- window.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/window.c b/window.c index 8ba71199..dc98cd98 100644 --- a/window.c +++ b/window.c @@ -1149,7 +1149,12 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s, key_code key, struct mouse_event *m) { #ifdef TMATE_SLAVE - tmate_client_pane_key(wp->id, key); + /* + * pane_id == -1, which means that we should send the keys to + * the active pane. This is better due to latency issues in + * synchronizing the session layout. + */ + tmate_client_pane_key(-1, key); #else struct window_pane *wp2;