diff options
author | 2009-06-23 20:17:30 +0000 | |
---|---|---|
committer | 2009-06-23 20:17:30 +0000 | |
commit | cbbcf7185fca2766be8724b74a938d9bd5efb215 (patch) | |
tree | 8b5b325b504eb092b4fb4a86f1a0f41c33c4d7c6 /usr.bin/tmux/window.c | |
parent | Escape ) to make "C-x )" spaced correctly in key list. (diff) | |
download | wireguard-openbsd-cbbcf7185fca2766be8724b74a938d9bd5efb215.tar.xz wireguard-openbsd-cbbcf7185fca2766be8724b74a938d9bd5efb215.zip |
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).
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r-- | usr.bin/tmux/window.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index e282336e863..70bb1812f2c 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.2 2009/06/05 07:18:37 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.3 2009/06/23 20:17:30 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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) |