From 69f3c24647b2e8c2558a5dc1b4abd82f9e75bf91 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 23 Jun 2009 20:17:30 +0000 Subject: [PATCH] If a pane is "zombified" (remain-on-exit flag), don't continue to queue key and mouse input for it (otherwise they are processed after respawn). --- window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/window.c b/window.c index aeed4bc9..b3dcd0f1 100644 --- a/window.c +++ b/window.c @@ -554,6 +554,9 @@ window_pane_parse(struct window_pane *wp) void window_pane_key(struct window_pane *wp, struct client *c, int key) { + if (wp->fd == -1) + return; + if (wp->mode != NULL) { if (wp->mode->key != NULL) wp->mode->key(wp, c, key); @@ -565,6 +568,9 @@ void window_pane_mouse( struct window_pane *wp, struct client *c, u_char b, u_char x, u_char y) { + if (wp->fd == -1) + return; + /* XXX convert from 1-based? */ if (x < wp->xoff || x >= wp->xoff + wp->sx)