Show a hidden active pane when it is selected from the pane list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael Grant
2026-10-01 11:14:21 +01:00
parent 59d714569f
commit fa4ebf2534
2 changed files with 12 additions and 1 deletions

View File

@@ -137,7 +137,8 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
} else {
if (cmdq_get_client(item) == NULL)
return (CMD_RETURN_NORMAL);
if (wl != NULL && wp != NULL && wp != wl->window->active) {
if (wl != NULL && wp != NULL &&
(wp != wl->window->active || (wp->flags & PANE_HIDDEN))) {
w = wl->window;
if (w->modal != NULL && wp != w->modal)
visible = 1;