diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-09-10 07:51:11 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-09-10 07:51:11 +0100 |
commit | 5aa435a9f04fd6e4bab6f564b8af7fe2e8c7719c (patch) | |
tree | bbea0ceab078d665368b64e9289ea28f14202613 | |
parent | a618271e1287c90653cdda4442868c2d4e94de49 (diff) | |
download | rtmux-5aa435a9f04fd6e4bab6f564b8af7fe2e8c7719c.tar.gz rtmux-5aa435a9f04fd6e4bab6f564b8af7fe2e8c7719c.tar.bz2 rtmux-5aa435a9f04fd6e4bab6f564b8af7fe2e8c7719c.zip |
window_get_active_at needs to check visible also.
-rw-r--r-- | window.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -501,6 +501,8 @@ window_get_active_at(struct window *w, u_int x, u_int y) struct window_pane *wp; TAILQ_FOREACH(wp, &w->panes, entry) { + if (!window_pane_visible(wp)) + continue; if (x < wp->xoff || x > wp->xoff + wp->sx) continue; if (y < wp->yoff || y > wp->yoff + wp->sy) |