mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
Bring back window_pane_visible to stop input going to panes which are
hidden by zoom.
This commit is contained in:
19
window.c
19
window.c
@ -1286,15 +1286,24 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
|
||||
return;
|
||||
if (options_get_number(wp->window->options, "synchronize-panes")) {
|
||||
TAILQ_FOREACH(wp2, &wp->window->panes, entry) {
|
||||
if (wp2 == wp || wp2->mode != NULL)
|
||||
continue;
|
||||
if (wp2->fd == -1 || wp2->flags & PANE_INPUTOFF)
|
||||
continue;
|
||||
input_key(wp2, key, NULL);
|
||||
if (wp2 != wp &&
|
||||
wp2->mode == NULL &&
|
||||
wp2->fd != -1 &&
|
||||
(~wp2->flags & PANE_INPUTOFF) &&
|
||||
window_pane_visible(wp2))
|
||||
input_key(wp2, key, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
window_pane_visible(struct window_pane *wp)
|
||||
{
|
||||
if (~wp->window->flags & WINDOW_ZOOMED)
|
||||
return (1);
|
||||
return (wp == wp->window->active);
|
||||
}
|
||||
|
||||
u_int
|
||||
window_pane_search(struct window_pane *wp, const char *searchstr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user