The branch, master has been updated
       via  2057812c8f293b0295740f9b31f877629fc43888 (commit)
      from  13360ad54157790cbbaab757f659cb6d8a4ce2c4 (commit)

- Log -----------------------------------------------------------------
commit 2057812c8f293b0295740f9b31f877629fc43888
Author: Thomas Adam <[email protected]>
Commit: Thomas Adam <[email protected]>

    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.
---
 layout.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/layout.c b/layout.c
index cf554c3..646d1bd 100644
--- a/layout.c
+++ b/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 &&


-----------------------------------------------------------------------

Summary of changes:
 layout.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
tmux

------------------------------------------------------------------------------
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=60134791&iu=/4140/ostg.clktrk
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to