diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-09-10 07:19:17 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-09-10 07:19:17 +0100 |
commit | a618271e1287c90653cdda4442868c2d4e94de49 (patch) | |
tree | 31fc022aefc2f1317378fc508937d5feb07dc363 /input-keys.c | |
parent | 8598fd1bc5a4295abf7c720d4bbb7a6e980fbd47 (diff) | |
download | rtmux-a618271e1287c90653cdda4442868c2d4e94de49.tar.gz rtmux-a618271e1287c90653cdda4442868c2d4e94de49.tar.bz2 rtmux-a618271e1287c90653cdda4442868c2d4e94de49.zip |
Bring back window_pane_visible to stop input going to panes which are
hidden by zoom.
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) && |