From 5aa435a9f04fd6e4bab6f564b8af7fe2e8c7719c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 10 Sep 2018 07:51:11 +0100 Subject: window_get_active_at needs to check visible also. --- window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/window.c b/window.c index aabfbdf1..7d3b0748 100644 --- a/window.c +++ b/window.c @@ -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) -- cgit