=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- src/usr.bin/tmux/window.c 2009/07/14 07:23:36 1.10 +++ src/usr.bin/tmux/window.c 2009/07/14 16:52:50 1.11 @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.10 2009/07/14 07:23:36 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.11 2009/07/14 16:52:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -580,7 +580,7 @@ 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 @@ 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? */