1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Don't accept input to a window if it not visible.

This commit is contained in:
Nicholas Marriott 2009-07-14 16:52:50 +00:00
parent 975f516f51
commit e76caa0017

View File

@ -580,7 +580,7 @@ window_pane_parse(struct window_pane *wp)
void void
window_pane_key(struct window_pane *wp, struct client *c, int key) window_pane_key(struct window_pane *wp, struct client *c, int key)
{ {
if (wp->fd == -1) if (wp->fd == -1 || !window_pane_visible(wp))
return; return;
if (wp->mode != NULL) { if (wp->mode != NULL) {
@ -594,7 +594,7 @@ void
window_pane_mouse( window_pane_mouse(
struct window_pane *wp, struct client *c, u_char b, u_char x, u_char y) struct window_pane *wp, struct client *c, u_char b, u_char x, u_char y)
{ {
if (wp->fd == -1) if (wp->fd == -1 || !window_pane_visible(wp))
return; return;
/* XXX convert from 1-based? */ /* XXX convert from 1-based? */