Package: tmux / 1.8-5~bpo70+1

upstream-21bca549d3.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
commit 21bca549d35b3d0b4ff1f22f66e5e108c103ac4b
Author: Thomas <thomas@xteddy.org>
Date:   Tue Sep 10 13:17:39 2013 +0100

    layout-resize-pane-mouse: Consider visible panes only
    
    When a pane is maximized, and text is selected, we end up checking if a pane
    switch is needed.  This therefore means we might end up selecting panes
    which aren't visible.

diff --git a/layout.c b/layout.c
index b74bd78..cf554c3 100644
--- a/layout.c
+++ b/layout.c
@@ -533,6 +533,9 @@ layout_resize_pane_mouse(struct client *c)
 	pane_border = 0;
 	if (m->event & MOUSE_EVENT_DRAG && m->flags & MOUSE_RESIZE_PANE) {
 		TAILQ_FOREACH(wp, &w->panes, entry) {
+			if (!window_pane_visible(wp))
+				continue;
+
 			if (wp->xoff + wp->sx == m->lx &&
 			    wp->yoff <= 1 + m->ly &&
 			    wp->yoff + wp->sy >= m->ly) {