On Sun, May 07, 2006 at 02:07:51PM +0200, Bram Moolenaar wrote:
> > If it's essential for other systems to not have negative coordinates
> > here, it might be worth the windows gui_mch_*_winpos functions
> > offsetting from the top-right of the entire virtual screen; this is
> > SM_XVIRTUALSCREEN and SM_VIRTUALSCREEN (from GetSystemMetrics) so as to
> > make all coordinates positive. 
> 
> For Vim it doesn't matter if a monitor is primary or secondary.  I think
> the coordinates should be the left-upper corner of the left-upper
> monitor.  That way the coordinates are portable over systems.

Mmm. So you mean that the top-left corner of the top-left monitor should
be (0,0)? I'll give this a try.

Alternatively, those checks in gui.c that the position of the screen are
sensible after resizing the window are redundant on Windows, because the
code that resizes the screen also precisely positions it itself. Another
possible solution could be to wrap that in an #ifndef WIN32 to disable
it on windows systems. 

-James

Reply via email to