mirror of
https://github.com/tmux/tmux.git
synced 2026-10-11 21:14:21 +00:00
Hide the zoomed panes when a covered tiled pane is activated.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -77,8 +77,18 @@ cmd_resize_pane_desktop(struct window *w)
|
||||
shown = 1;
|
||||
}
|
||||
}
|
||||
if (shown)
|
||||
if (shown) {
|
||||
/* Do not leave the active pane covered by a pane just shown. */
|
||||
if (!window_pane_is_visible(w->active)) {
|
||||
TAILQ_FOREACH(wp, &w->z_index, zentry) {
|
||||
if (window_pane_is_visible(wp))
|
||||
break;
|
||||
}
|
||||
if (wp != NULL)
|
||||
window_set_active_pane(w, wp, 1);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||
if (wp == w->modal || (wp->flags & PANE_HIDDEN))
|
||||
|
||||
Reference in New Issue
Block a user