Revision: 2648
          http://tmux.svn.sourceforge.net/tmux/?rev=2648&view=rev
Author:   tcunha
Date:     2011-12-25 23:33:30 +0000 (Sun, 25 Dec 2011)
Log Message:
-----------
Sync OpenBSD patchset 988:

Fix so that when mouse-select-pane and mouse-select-window are both
enabled, clicking on the status line does not change the current
pane. From Romain Francoise.

Modified Paths:
--------------
    trunk/server-client.c

Modified: trunk/server-client.c
===================================================================
--- trunk/server-client.c       2011-12-09 16:37:29 UTC (rev 2647)
+++ trunk/server-client.c       2011-12-25 23:33:30 UTC (rev 2648)
@@ -319,6 +319,8 @@
                if (c->flags & CLIENT_READONLY)
                        return;
                if (options_get_number(oo, "mouse-select-pane") &&
+                   (!(options_get_number(oo, "status") &&
+                      mouse->y + 1 == c->tty.sy)) &&
                    ((!(mouse->b & MOUSE_DRAG) && mouse->b != MOUSE_UP) ||
                    wp->mode != &window_copy_mode)) {
                        /*

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to