From ad1945c278630aa300ce3ca25400d8bef5f36815 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 15 Jul 2009 17:43:21 +0000 Subject: [PATCH] Don't accept input to a window if it not visible. --- window.c | 6 +++--- 1 file 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 @@ -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? */