Looks good can you apply this too?

-------- Original message --------
From: Thomas <tho...@xteddy.org> 
Date: 10/09/2013  17:25  (GMT+00:00) 
To: tmux-us...@lists.sf.net 
Cc: Thomas <tho...@xteddy.org> 
Subject: [PATCH] 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.
---
layout.c | 3 +++
1 file changed, 3 insertions(+)

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) {
-- 
1.8.4.rc1


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to