Add support for clicking on a floating pane border to make it active. Including bugfix to click bottom border of floating panes.

This commit is contained in:
Michael Grant
2025-11-07 11:43:41 +01:00
parent 9c45dd693b
commit 329e9d54ab
4 changed files with 14 additions and 3 deletions

View File

@@ -455,6 +455,9 @@ key_bindings_init(void)
/* Mouse button 1 triple click on pane. */
"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 -M }",
/* Mouse button 1 drag on border. */
"bind -n MouseDrag1Border { resize-pane -M }",