Raise a floating or zoomed pane when its border is clicked.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael Grant
2026-10-01 21:01:50 +01:00
parent 64d5c585c6
commit 291c043080
3 changed files with 14 additions and 3 deletions

View File

@@ -524,7 +524,7 @@ key_bindings_init(void)
"bind -n TripleClick1Pane { select-pane -t=; if -F '#{||:#{pane_in_mode},#{mouse_any_flag}}' { send -M } { copy-mode -H; send -X select-line; run -d0.3; send -X copy-pipe-and-cancel } }",
/* Mouse button 1 on border. */
"bind -n MouseDown1Border { select-pane -t= }",
"bind -n MouseDown1Border { select-pane -t=; if -Ft= '#{||:#{pane_floating_flag},#{pane_zoomed_flag}}' { move-pane -t= -P front } }",
/* Mouse button 1 drag on border. */
"bind -n MouseDrag1Border { resize-pane -M }",