diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-14 16:52:50 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-14 16:52:50 +0000 |
commit | e76caa0017795c3ec4ad9406b55f4937bf7ccae0 (patch) | |
tree | 87f9a4ab2ec243b23a14d5df01a41084ab64d150 /window.c | |
parent | 975f516f516600cf373a1e9642734ccbc7f68197 (diff) | |
download | rtmux-e76caa0017795c3ec4ad9406b55f4937bf7ccae0.tar.gz rtmux-e76caa0017795c3ec4ad9406b55f4937bf7ccae0.tar.bz2 rtmux-e76caa0017795c3ec4ad9406b55f4937bf7ccae0.zip |
Don't accept input to a window if it not visible.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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? */ |