summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-10-30 09:00:07 +0000
committernicm <nicm@openbsd.org>2020-10-30 09:00:07 +0000
commita0ae45ed4282eb2818c4e4b306aed964a047bb81 (patch)
tree9916541eb474c1dd461c7530c32c476a25f955ea /usr.bin/tmux/server-client.c
parentAdd a -O flag to display-menu to change the mouse behaviour and not (diff)
downloadwireguard-openbsd-a0ae45ed4282eb2818c4e4b306aed964a047bb81.tar.xz
wireguard-openbsd-a0ae45ed4282eb2818c4e4b306aed964a047bb81.zip
There is no reason not to fire focus events when a pane is in a mode,
GitHub issue 2372.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 25df84ab807..2758229e50c 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.363 2020/10/30 08:55:56 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.364 2020/10/30 09:00:07 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1590,10 +1590,6 @@ server_client_check_pane_focus(struct window_pane *wp)
if (wp->window->active != wp)
goto not_focused;
- /* If we're in a mode, we're not focused. */
- if (wp->screen != &wp->base)
- goto not_focused;
-
/*
* If our window is the current window in any focused clients with an
* attached session, we're focused.