diff options
author | 2009-07-14 16:52:50 +0000 | |
---|---|---|
committer | 2009-07-14 16:52:50 +0000 | |
commit | eb9deddbd12283351f38901695f8a13ae16b5e79 (patch) | |
tree | 06a149349de858b7dff06332b6ce827394c04a27 /usr.bin/tmux/window.c | |
parent | don't give people any ideas. nfssvc(2) should not be used (diff) | |
download | wireguard-openbsd-eb9deddbd12283351f38901695f8a13ae16b5e79.tar.xz wireguard-openbsd-eb9deddbd12283351f38901695f8a13ae16b5e79.zip |
Don't accept input to a window if it not visible.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r-- | usr.bin/tmux/window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index f3ecc658a82..dbe8275e169 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -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 <nicm@users.sourceforge.net> @@ -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? */ |