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

@@ -86,6 +86,8 @@ cmd_resize_pane_exec(struct cmd *self, struct cmdq_item *item)
c->tty.mouse_drag_update = cmd_resize_pane_mouse_update_tiled;
cmd_resize_pane_mouse_update_tiled(c, &event->m);
} else {
window_redraw_active_switch(w, c->tty.mouse_wp);
window_set_active_pane(w, c->tty.mouse_wp, 1);
c->tty.mouse_drag_update = cmd_resize_pane_mouse_update_floating;
cmd_resize_pane_mouse_update_floating(c, &event->m);
}