845afa9
To: vim-dev@vim.org
845afa9
Subject: Patch 7.0.003
845afa9
Fcc: outbox
845afa9
From: Bram Moolenaar <Bram@moolenaar.net>
845afa9
Mime-Version: 1.0
845afa9
Content-Type: text/plain; charset=ISO-8859-1
845afa9
Content-Transfer-Encoding: 8bit
845afa9
------------
845afa9
845afa9
Patch 7.0.003
845afa9
Problem:    GUI: clicking in the lower part of a label in the tab pages line
845afa9
	    while 'mousefocus' is set may warp the mouse pointer. (Robert
845afa9
	    Webb)
845afa9
Solution:   Check for a negative mouse position.
845afa9
Files:	    src/gui.c
845afa9
845afa9
845afa9
*** ../vim-7.0.002/src/gui.c	Wed May 10 15:22:49 2006
845afa9
--- src/gui.c	Mon May  8 16:31:49 2006
845afa9
***************
845afa9
*** 4603,4613 ****
845afa9
      /* Don't move the mouse when it's left or right of the Vim window */
845afa9
      if (x < 0 || x > Columns * gui.char_width)
845afa9
  	return;
845afa9
  # ifdef FEAT_WINDOWS
845afa9
!     if (Y_2_ROW(y) >= tabline_height())
845afa9
! # else
845afa9
!     if (y >= 0)
845afa9
  # endif
845afa9
  	wp = xy2win(x, y);
845afa9
      if (wp != curwin && wp != NULL)	/* If in other than current window */
845afa9
      {
845afa9
--- 4603,4613 ----
845afa9
      /* Don't move the mouse when it's left or right of the Vim window */
845afa9
      if (x < 0 || x > Columns * gui.char_width)
845afa9
  	return;
845afa9
+     if (y >= 0
845afa9
  # ifdef FEAT_WINDOWS
845afa9
! 	    && Y_2_ROW(y) >= tabline_height()
845afa9
  # endif
845afa9
+        )
845afa9
  	wp = xy2win(x, y);
845afa9
      if (wp != curwin && wp != NULL)	/* If in other than current window */
845afa9
      {
845afa9
*** ../vim-7.0.002/src/version.c	Wed May 10 15:25:45 2006
845afa9
--- src/version.c	Wed May 10 17:12:27 2006
845afa9
***************
845afa9
*** 668,669 ****
845afa9
--- 668,671 ----
845afa9
  {   /* Add new patch number below this line */
845afa9
+ /**/
845afa9
+     3,
845afa9
  /**/
845afa9
845afa9
-- 
845afa9
From "know your smileys":
845afa9
 2B|^2B	  Message from Shakespeare
845afa9
845afa9
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
845afa9
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
845afa9
\\\        download, build and distribute -- http://www.A-A-P.org        ///
845afa9
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///