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

pull/2270/head
nicm 2020-05-22 15:43:38 +00:00
parent a06a0e1392
commit 033d6472cb
2 changed files with 3 additions and 6 deletions

View File

@ -1286,7 +1286,7 @@ forward_key:
window_pane_key(wp, c, s, wl, key, m);
out:
if (s != NULL)
if (s != NULL && key != KEYC_FOCUS_OUT)
server_client_update_latest(c);
free(event);
return (CMD_RETURN_NORMAL);

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