mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
mouse-resize-pane: Only resize on border select
The current behaviour of mouse-resize-pane is such that if the mouse button is held down and a selection takes place within a pane, that if the mouse pointer then hits a border edge, that pane-resize would initiate. This seems counter-intuitive; instead, check for a resize condition if the border of a pane is selected, and in the case of mouse selection within a pane, no longer resize the pane if edge of the border is hit.
This commit is contained in:
parent
13360ad541
commit
2057812c8f
2
layout.c
2
layout.c
@ -553,7 +553,7 @@ layout_resize_pane_mouse(struct client *c)
|
||||
}
|
||||
if (pane_border)
|
||||
server_redraw_window(w);
|
||||
} else if (~m->event & MOUSE_EVENT_UP) {
|
||||
} else if (m->event & MOUSE_EVENT_DOWN) {
|
||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||
if ((wp->xoff + wp->sx == m->x &&
|
||||
wp->yoff <= 1 + m->y &&
|
||||
|
Loading…
Reference in New Issue
Block a user