Scale pane on unhiding to window when necessary

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael Grant
2026-10-01 08:13:25 +01:00
parent d6cf5e0e4d
commit 59d714569f
7 changed files with 472 additions and 19 deletions

View File

@@ -59,18 +59,18 @@ static void
cmd_resize_pane_desktop(struct window *w)
{
struct window_pane *wp;
int marked = 0;
int shown = 0;
TAILQ_FOREACH(wp, &w->panes, entry) {
if (wp->flags & PANE_HIDDENALL)
marked = 1;
}
TAILQ_FOREACH(wp, &w->panes, entry) {
if (marked) {
if (wp->flags & PANE_HIDDENALL)
window_show_pane(wp);
if (~wp->flags & PANE_HIDDENALL)
continue;
}
window_show_pane(wp);
shown = 1;
}
if (shown)
return;
TAILQ_FOREACH(wp, &w->panes, entry) {
if (wp == w->modal || (wp->flags & PANE_HIDDEN))
continue;
if (!window_pane_is_raised(wp))