From e76caa0017795c3ec4ad9406b55f4937bf7ccae0 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 14 Jul 2009 16:52:50 +0000 Subject: [PATCH] Don't accept input to a window if it not visible. --- window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/window.c b/window.c index 3dfe89ec..46a713df 100644 --- a/window.c +++ b/window.c @@ -580,7 +580,7 @@ window_pane_parse(struct window_pane *wp) void 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; if (wp->mode != NULL) { @@ -594,7 +594,7 @@ void window_pane_mouse( 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; /* XXX convert from 1-based? */