diff options
author | 2013-10-10 12:08:14 +0000 | |
---|---|---|
committer | 2013-10-10 12:08:14 +0000 | |
commit | a55691242ecc538912b994be47b80a5b2d574f6a (patch) | |
tree | 47faa857da21a2cbb1aa7edb10ec2a18ac203e3f /usr.bin/tmux/layout.c | |
parent | Support -c for new-session, based on code from J Raynor. (diff) | |
download | wireguard-openbsd-a55691242ecc538912b994be47b80a5b2d574f6a.tar.xz wireguard-openbsd-a55691242ecc538912b994be47b80a5b2d574f6a.zip |
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.
By Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/layout.c')
-rw-r--r-- | usr.bin/tmux/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/layout.c b/usr.bin/tmux/layout.c index 9c7243cb0cb..fdef8c6d637 100644 --- a/usr.bin/tmux/layout.c +++ b/usr.bin/tmux/layout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: layout.c,v 1.19 2013/10/10 12:03:46 nicm Exp $ */ +/* $OpenBSD: layout.c,v 1.20 2013/10/10 12:08:14 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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 && |