Bring back window_pane_visible to stop input going to panes which are

hidden by zoom.
This commit is contained in:
Nicholas Marriott
2018-09-10 07:19:17 +01:00
parent 8598fd1bc5
commit a618271e12
3 changed files with 17 additions and 5 deletions

View File

@ -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) &&