diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:43:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:43:21 +0000 |
commit | ad1945c278630aa300ce3ca25400d8bef5f36815 (patch) | |
tree | aa9b8c5f4937d553ec9667ded71a343928855212 | |
parent | 82b45b460e137c33709a2fc8c0ae0b7b88735db2 (diff) | |
download | rtmux-ad1945c278630aa300ce3ca25400d8bef5f36815.tar.gz rtmux-ad1945c278630aa300ce3ca25400d8bef5f36815.tar.bz2 rtmux-ad1945c278630aa300ce3ca25400d8bef5f36815.zip |
Don't accept input to a window if it not visible.
-rw-r--r-- | window.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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? */ |