Zoomed panes are now like full screen floating panes.

This commit is contained in:
Michael Grant
2026-09-30 23:10:40 +01:00
parent 5a820e63b7
commit 7810f8abf3
29 changed files with 752 additions and 621 deletions

View File

@@ -355,6 +355,24 @@ check_ok resize-pane -Z -t "$p1"
check_ok rotate-window -D -t R:0
check_fmt 'R:0' '#{window_layout}' "$layout"
# Floating panes are not rotated: they keep their geometry and stay floating
# while the tiled panes rotate around them.
fp=$($TMUX new-pane -dPF '#{pane_id}' -t R:0 -x 20 -y 8 -X 8 -Y 3 '')
fgeom=$($TMUX display-message -p -t "$fp" \
'#{pane_floating_flag}:#{pane_left}:#{pane_top}:#{pane_width}:#{pane_height}')
check_ok select-pane -t "$p0"
check_ok rotate-window -U -t R:0
check_fmt "$fp" \
'#{pane_floating_flag}:#{pane_left}:#{pane_top}:#{pane_width}:#{pane_height}' \
"$fgeom"
check_fmt "$p1" '#{pane_floating_flag}:#{pane_top}:#{pane_active}' '0:0:1'
check_ok rotate-window -D -t R:0
check_fmt "$fp" \
'#{pane_floating_flag}:#{pane_left}:#{pane_top}:#{pane_width}:#{pane_height}' \
"$fgeom"
check_fmt "$p0" '#{pane_floating_flag}:#{pane_top}:#{pane_active}' '0:0:1'
check_ok kill-pane -t "$fp"
# ---------------------------------------------------------------------------
# kill-window.