From a618271e1287c90653cdda4442868c2d4e94de49 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 10 Sep 2018 07:19:17 +0100 Subject: Bring back window_pane_visible to stop input going to panes which are hidden by zoom. --- input-keys.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'input-keys.c') diff --git a/input-keys.c b/input-keys.c index d3ff0dc0..f0a38c09 100644 --- a/input-keys.c +++ b/input-keys.c @@ -249,6 +249,8 @@ input_key_mouse(struct window_pane *wp, struct mouse_event *m) return; if (cmd_mouse_at(wp, m, &x, &y, 0) != 0) return; + if (!window_pane_visible(wp)) + return; /* If this pane is not in button or all mode, discard motion events. */ if (MOUSE_DRAG(m->b) && -- cgit