diff options
author | nicm <nicm> | 2020-05-22 15:43:38 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-22 15:43:38 +0000 |
commit | 033d6472cb71e82be75aae6682031ef3b711226a (patch) | |
tree | a6caf646cc17dda6f8f561abf44a3a084a166306 /tty-keys.c | |
parent | a06a0e13921955aaf7e772ee83a7280720a2f03a (diff) | |
download | rtmux-033d6472cb71e82be75aae6682031ef3b711226a.tar.gz rtmux-033d6472cb71e82be75aae6682031ef3b711226a.tar.bz2 rtmux-033d6472cb71e82be75aae6682031ef3b711226a.zip |
FocusIn keys can also update the latest client, like normal keys.
Diffstat (limited to 'tty-keys.c')
-rw-r--r-- | tty-keys.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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) { |