1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-11 03:28:49 +00:00

window_get_active_at needs to check visible also.

This commit is contained in:
Nicholas Marriott 2018-09-10 07:51:11 +01:00
parent a618271e12
commit 5aa435a9f0

View File

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