summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2024-10-05 12:10:17 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2024-10-05 12:10:17 +0000
commit387c2ac1c63e2d048981922861f216e2e283f21d (patch)
treef3f99bc1d8be50a3e36c20129aa556799b9d313f /usr.bin/tmux/window.c
parentcd16c9d107afe9734f051887840d95457c93db2d (diff)
Send focus events to pane when entering or leaving popup, GitHub issue
3991.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 2c92c4f8625..ab0b49e9a21 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.294 2024/10/01 08:01:19 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.295 2024/10/05 12:10:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -482,7 +482,8 @@ window_pane_update_focus(struct window_pane *wp)
if (c->session != NULL &&
c->session->attached != 0 &&
(c->flags & CLIENT_FOCUSED) &&
- c->session->curw->window == wp->window) {
+ c->session->curw->window == wp->window &&
+ c->overlay_draw == NULL) {
focused = 1;
break;
}