mirror of
https://github.com/tmux/tmux.git
synced 2025-01-15 05:09:04 +00:00
Accept key and mouse input for keys in zombified windows if they are in a mode..
This commit is contained in:
parent
9ed62eeb91
commit
2988c594cc
10
window.c
10
window.c
@ -629,15 +629,17 @@ window_pane_key(struct window_pane *wp, struct client *c, int key)
|
|||||||
{
|
{
|
||||||
struct window_pane *wp2;
|
struct window_pane *wp2;
|
||||||
|
|
||||||
if (wp->fd == -1 || !window_pane_visible(wp))
|
if (!window_pane_visible(wp))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (wp->mode != NULL) {
|
if (wp->mode != NULL) {
|
||||||
if (wp->mode->key != NULL)
|
if (wp->mode->key != NULL)
|
||||||
wp->mode->key(wp, c, key);
|
wp->mode->key(wp, c, key);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wp->fd == -1)
|
||||||
|
return;
|
||||||
input_key(wp, key);
|
input_key(wp, key);
|
||||||
if (options_get_number(&wp->window->options, "synchronize-panes")) {
|
if (options_get_number(&wp->window->options, "synchronize-panes")) {
|
||||||
TAILQ_FOREACH(wp2, &wp->window->panes, entry) {
|
TAILQ_FOREACH(wp2, &wp->window->panes, entry) {
|
||||||
@ -653,7 +655,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 || !window_pane_visible(wp))
|
if (!window_pane_visible(wp))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* XXX convert from 1-based? */
|
/* XXX convert from 1-based? */
|
||||||
@ -668,7 +670,7 @@ window_pane_mouse(
|
|||||||
if (wp->mode != NULL) {
|
if (wp->mode != NULL) {
|
||||||
if (wp->mode->mouse != NULL)
|
if (wp->mode->mouse != NULL)
|
||||||
wp->mode->mouse(wp, c, b, x, y);
|
wp->mode->mouse(wp, c, b, x, y);
|
||||||
} else
|
} else if (wp->fd != -1)
|
||||||
input_mouse(wp, b, x, y);
|
input_mouse(wp, b, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user