aboutsummaryrefslogtreecommitdiff
path: root/cmd-queue.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-14 11:18:19 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-14 11:18:19 +0100
commit0bdbf47ef946b3535cc32b45ea8d971de5baddb5 (patch)
treea44b650fc7eb232083f25e070f243899ed9cbedc /cmd-queue.c
parent12eceaf2b3ef2b028a55d8ad11951be700be0446 (diff)
downloadrtmux-0bdbf47ef946b3535cc32b45ea8d971de5baddb5.tar.gz
rtmux-0bdbf47ef946b3535cc32b45ea8d971de5baddb5.tar.bz2
rtmux-0bdbf47ef946b3535cc32b45ea8d971de5baddb5.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 'cmd-queue.c')
-rw-r--r--cmd-queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index 6bc6d0d2..5620fdad 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -809,7 +809,7 @@ cmdq_print(struct cmdq_item *item, const char *fmt, ...)
}
file_print(c, "%s\n", msg);
} else {
- wp = c->session->curw->window->active;
+ wp = server_client_get_pane(c);
wme = TAILQ_FIRST(&wp->modes);
if (wme == NULL || wme->mode != &window_view_mode) {
window_pane_set_mode(wp, NULL, &window_view_mode, NULL,