FocusIn keys can also update the latest client, like normal keys.

This commit is contained in:
nicm
2020-05-22 15:43:38 +00:00
parent a06a0e1392
commit 033d6472cb
2 changed files with 3 additions and 6 deletions

View File

@ -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) {