From 0bdbf47ef946b3535cc32b45ea8d971de5baddb5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 14 May 2020 11:18:19 +0100 Subject: 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. --- server-fn.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server-fn.c') diff --git a/server-fn.c b/server-fn.c index 127afb6b..df222d7e 100644 --- a/server-fn.c +++ b/server-fn.c @@ -185,6 +185,7 @@ server_kill_pane(struct window_pane *wp) recalculate_sizes(); } else { server_unzoom_window(w); + server_client_remove_pane(wp); layout_close_pane(wp); window_remove_pane(w, wp); server_redraw_window(w); @@ -349,6 +350,7 @@ server_destroy_pane(struct window_pane *wp, int notify) notify_pane("pane-exited", wp); server_unzoom_window(w); + server_client_remove_pane(wp); layout_close_pane(wp); window_remove_pane(w, wp); -- cgit