Add support for local windows for a client.

This commit is contained in:
Nicholas Marriott
2026-07-17 15:48:41 +01:00
parent 6dacc024f0
commit 38808509d5
36 changed files with 1101 additions and 170 deletions

View File

@@ -348,10 +348,10 @@ recalculate_size_skip_client(struct client *loop, __unused int type,
* is not the current window - this is used for aggressive-resize.
* Otherwise skip any session that doesn't contain the window.
*/
if (loop->session->curw == NULL)
if (active_get_effective_window(loop, loop->session) == NULL)
return (1);
if (current)
return (loop->session->curw->window != w);
return (active_get_effective_window(loop, loop->session) != w);
return (session_has(loop->session, w) == 0);
}