diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-05-22 18:01:20 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-05-22 18:01:20 +0100 |
commit | e71c5efd58b5160864ce851a4cbc93e5fde93685 (patch) | |
tree | 1b98976505c7babd5d81748b98d7371f432a73e9 | |
parent | 2ac6cc2633cf61211b31462f372e16f15d9bf2d6 (diff) | |
parent | 033d6472cb71e82be75aae6682031ef3b711226a (diff) | |
download | rtmux-e71c5efd58b5160864ce851a4cbc93e5fde93685.tar.gz rtmux-e71c5efd58b5160864ce851a4cbc93e5fde93685.tar.bz2 rtmux-e71c5efd58b5160864ce851a4cbc93e5fde93685.zip |
Merge branch 'obsd-master'
-rw-r--r-- | options-table.c | 2 | ||||
-rw-r--r-- | server-client.c | 2 | ||||
-rw-r--r-- | tty-keys.c | 7 | ||||
-rw-r--r-- | tty.c | 2 |
4 files changed, 5 insertions, 8 deletions
diff --git a/options-table.c b/options-table.c index 1341ed2e..0555d43e 100644 --- a/options-table.c +++ b/options-table.c @@ -306,7 +306,7 @@ const struct options_table_entry options_table[] = { .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_SERVER, .flags = OPTIONS_TABLE_IS_ARRAY, - .default_str = "xterm*:clipboard:ccolour:cstyle:title," + .default_str = "xterm*:clipboard:ccolour:cstyle:focus:title," "screen*:title", .separator = ",", .text = "List of terminal features, used if they cannot be " diff --git a/server-client.c b/server-client.c index 59b6a6c5..de81e5ee 100644 --- a/server-client.c +++ b/server-client.c @@ -1284,7 +1284,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); @@ -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) { @@ -467,7 +467,7 @@ tty_update_features(struct tty *tty) if (options_get_number(global_options, "extended-keys")) tty_puts(tty, tty_term_string(tty->term, TTYC_ENEKS)); if (options_get_number(global_options, "focus-events")) - tty_raw(tty, tty_term_string(tty->term, TTYC_ENFCS)); + tty_puts(tty, tty_term_string(tty->term, TTYC_ENFCS)); if (tty->term->flags & TERM_VT100LIKE) tty_puts(tty, "\033[?7727h"); } |