mirror of
https://github.com/tmux/tmux.git
synced 2025-01-15 05:09:04 +00:00
Don't accept input to a window if it not visible.
This commit is contained in:
parent
82b45b460e
commit
ad1945c278
6
window.c
6
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 <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -578,7 +578,7 @@ window_pane_parse(struct window_pane *wp)
|
|||||||
void
|
void
|
||||||
window_pane_key(struct window_pane *wp, struct client *c, int key)
|
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;
|
return;
|
||||||
|
|
||||||
if (wp->mode != NULL) {
|
if (wp->mode != NULL) {
|
||||||
@ -592,7 +592,7 @@ void
|
|||||||
window_pane_mouse(
|
window_pane_mouse(
|
||||||
struct window_pane *wp, struct client *c, u_char b, u_char x, u_char y)
|
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;
|
return;
|
||||||
|
|
||||||
/* XXX convert from 1-based? */
|
/* XXX convert from 1-based? */
|
||||||
|
Loading…
Reference in New Issue
Block a user