aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/window.c b/window.c
index 4e3eccbf..3823158a 100644
--- a/window.c
+++ b/window.c
@@ -1,4 +1,4 @@
-/* $Id: window.c,v 1.91 2009-07-15 17:42:44 nicm Exp $ */
+/* $Id: window.c,v 1.92 2009-07-15 17:43:21 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -578,7 +578,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) {
@@ -592,7 +592,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? */