diff options
author | nicm <nicm> | 2020-05-16 16:20:59 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-16 16:20:59 +0000 |
commit | 303d342d5fa5903983c08e4cae429e4f9480eea3 (patch) | |
tree | 150aab174cb176f9a0f8fe29e5b1eb46a65457ec /tty.c | |
parent | c914abfa19938fe0e41941879649b7a40e192082 (diff) | |
download | rtmux-303d342d5fa5903983c08e4cae429e4f9480eea3.tar.gz rtmux-303d342d5fa5903983c08e4cae429e4f9480eea3.tar.bz2 rtmux-303d342d5fa5903983c08e4cae429e4f9480eea3.zip |
Add a client flag 'active-pane' which stores the active pane in the
client and allows it to be changed independently from the real active
pane stored in the window. This is can be used with session groups which
allow an independent current window (although it would be nice to have a
flag for this too and remove session groups). The client active pane is
only really useful interactively, many things (hooks, window-style,
zooming) still use the window active pane.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -693,8 +693,7 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s) } if (s != NULL && tty->cstyle != s->cstyle) { if (tty_term_has(tty->term, TTYC_SS)) { - if (s->cstyle == 0 && - tty_term_has(tty->term, TTYC_SE)) + if (s->cstyle == 0 && tty_term_has(tty->term, TTYC_SE)) tty_putcode(tty, TTYC_SE); else tty_putcode1(tty, TTYC_SS, s->cstyle); @@ -792,7 +791,7 @@ tty_window_offset1(struct tty *tty, u_int *ox, u_int *oy, u_int *sx, u_int *sy) { struct client *c = tty->client; struct window *w = c->session->curw->window; - struct window_pane *wp = w->active; + struct window_pane *wp = server_client_get_pane(c); u_int cx, cy, lines; lines = status_line_size(c); |