# HG changeset patch
# User Michael Wookey <michael.wookey@citrix.com>
# Date 1282006292 -36000
# Node ID 772f33c040965b32bcd625f761ea4805aeaef229
# Parent  fde086181841aa124af8a38b5c0bba132de3ea94
Prevent the Win32 GVim window from jumping to the primary monitor when the secondary monitor has negative coordinates. No doubt this introduces side effects. An example would be that the GVim window would never be visible if the initial window coordinates were extremely negative.

diff --git a/src/gui_w32.c b/src/gui_w32.c
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -1672,16 +1672,10 @@
 	    && workarea_left + win_xpos + win_width > workarea_rect.right)
 	win_xpos = workarea_rect.right - win_width - workarea_left;
 
-    if ((direction & RESIZE_HOR) && win_xpos < 0)
-	win_xpos = 0;
-
     if ((direction & RESIZE_VERT)
 	  && workarea_rect.top + win_ypos + win_height > workarea_rect.bottom)
 	win_ypos = workarea_rect.bottom - win_height - workarea_rect.top;
 
-    if ((direction & RESIZE_VERT) && win_ypos < 0)
-	win_ypos = 0;
-
     wndpl.rcNormalPosition.left = win_xpos;
     wndpl.rcNormalPosition.right = win_xpos + win_width;
     wndpl.rcNormalPosition.top = win_ypos;
