summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tty-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-05-22 15:43:39 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-05-22 15:43:39 +0000
commit4040f1c55e872dff7a1321f54d4ab7d196c57f85 (patch)
tree088d0efb71008dac20e77815e717f115e92e60a9 /usr.bin/tmux/tty-keys.c
parent91a1fee7d9bd1e7d36c099b06aac8f2b9e85def9 (diff)
FocusIn keys can also update the latest client, like normal keys.
Diffstat (limited to 'usr.bin/tmux/tty-keys.c')
-rw-r--r--usr.bin/tmux/tty-keys.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c
index 80b59c0d720..ddcde5efbbe 100644
--- a/usr.bin/tmux/tty-keys.c
+++ b/usr.bin/tmux/tty-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty-keys.c,v 1.136 2020/05/16 16:44:54 nicm Exp $ */
+/* $OpenBSD: tty-keys.c,v 1.137 2020/05/22 15:43:38 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -800,13 +800,10 @@ complete_key:
tty->flags &= ~TTY_TIMER;
/* Check for focus events. */
- if (key == KEYC_FOCUS_OUT) {
+ if (key == KEYC_FOCUS_OUT)
tty->client->flags &= ~CLIENT_FOCUSED;
- return (1);
- } else if (key == KEYC_FOCUS_IN) {
+ else if (key == KEYC_FOCUS_IN)
tty->client->flags |= CLIENT_FOCUSED;
- return (1);
- }
/* Fire the key. */
if (key != KEYC_UNKNOWN) {