diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-24 14:20:17 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-24 14:20:17 +0100 |
commit | c107708bcca5d7c014e469b719b2e0e48452be5d (patch) | |
tree | f095f3ae3c731862765ebbf46eef86d2ac7c6887 | |
parent | a477c03ad59fb1487881df5c6be135dde4765133 (diff) | |
download | rtmux-c107708bcca5d7c014e469b719b2e0e48452be5d.tar.gz rtmux-c107708bcca5d7c014e469b719b2e0e48452be5d.tar.bz2 rtmux-c107708bcca5d7c014e469b719b2e0e48452be5d.zip |
Focus reporting no longer under XT.
-rw-r--r-- | tty.c | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -330,13 +330,12 @@ tty_start_tty(struct tty *tty) tty_puts(tty, "\033[?1006l\033[?1005l"); } - if (tty_term_flag(tty->term, TTYC_XT)) { - if (options_get_number(global_options, "focus-events")) { - tty->flags |= TTY_FOCUS; - tty_raw(tty, tty_term_string(tty->term, TTYC_ENFCS)); - } - tty_puts(tty, "\033[?7727h"); + if (options_get_number(global_options, "focus-events")) { + tty->flags |= TTY_FOCUS; + tty_raw(tty, tty_term_string(tty->term, TTYC_ENFCS)); } + if (tty_term_flag(tty->term, TTYC_XT)) + tty_puts(tty, "\033[?7727h"); evtimer_set(&tty->start_timer, tty_start_timer_callback, tty); evtimer_add(&tty->start_timer, &tv); @@ -417,13 +416,12 @@ tty_stop_tty(struct tty *tty) tty_raw(tty, "\033[?1006l\033[?1005l"); } - if (tty_term_flag(tty->term, TTYC_XT)) { - if (tty->flags & TTY_FOCUS) { - tty->flags &= ~TTY_FOCUS; - tty_raw(tty, tty_term_string(tty->term, TTYC_DSFCS)); - } - tty_raw(tty, "\033[?7727l"); + if (tty->flags & TTY_FOCUS) { + tty->flags &= ~TTY_FOCUS; + tty_raw(tty, tty_term_string(tty->term, TTYC_DSFCS)); } + if (tty_term_flag(tty->term, TTYC_XT)) + tty_raw(tty, "\033[?7727l"); if (tty_use_margin(tty)) tty_raw(tty, tty_term_string(tty->term, TTYC_DSMG)); |