M. Brotherston wrote:
> I posted this thread originally on vim_use, but I the only 'solution'
> I found so far was to modify the source code. So here goes:
>
> [Quoted from original post]
> Situation. I downloaded and installed 'TweakUI' for Windows XP. I
> turned on the 'X-Mouse :: Activation Follows Mouse' feature, and
> selected on 'General :: Focus :: Prevent applications from stealing
> focus". - I'm trying to get the closest feel I can to running Linux,
> without actually running Linux [requirement]
>
> I use the Windows Version of Vim [downloaded from the vim.org website]
> VIM - Vi IMproved 7.1 (2007 May 12, compiled May 12 2007 14:19:39)
> MS-Windows 32 bit GUI version with OLE support
> Compiled by [EMAIL PROTECTED]
>
> And have a mapping setup for interaction with Cygwin in my .vimrc:
> if has("win32")
> set shellslash
> " F2 -- map F2 key to read-write file (autoload should be set for
> this!)
> map <silent> <f2> :silent! !chmod u+w `cygpath "%"`<CR>
> " F3 -- map F3 key to read-only file (autoload should be set for
> this!)
> map <silent> <f3> :silent! !chmod u-w `cygpath "%"`<CR>
> else
> " F2 -- map F2 key to read-write file (autoload should be set for
> this!)
> map <silent> <f2> :silent! !chmod u+w %<CR>
> " F3 -- map F3 key to read-only file (autoload should be set for
> this!)
> map <silent> <f3> :silent! !chmod u-w %<CR>
> endif
>
> Now every time I press F2/F3 to change permissions of the files, the
> mouse jumps half-way across my screen, and I lose focus on Vim. I
> think a new window appears/disappears on the screen [like a flicker],
> taking the mouse for a ride.
> I use this method because I have set up my cpoptions with the value
> of: +=W
> [End-Quote]
>
> The only solution I found at this time, was to modify the call to
> CreateProcess in os_win32.c and change the parameter "Creation Flags"
> to use CREATE_NO_WINDOW instead of CREATE_NEW_CONSOLE. My question is
> could this flag be changed without affecting existing functionality,
> or else somehow be made more dynamic so that in my situation [WinXP +
> XMouse] things would 'just work'? I'm fine with 'hacking' my own copy
> of gvim with this change to stop my own insanity, but I'd really like
> to know if this could somehow be integrated into the main stream?
>
> Thank you for your understanding.
That change would break anything that is interactive. And may even
crash your system for some old DOS commands (although Windows XP appears
to work better these days).
I've tried what you did, focus-follows-mouse in MS-Windows. Gave up on
it after too many applications failed to work properly. I don't think
there are more than a few people who use it.
--
hundred-and-one symptoms of being an internet addict:
173. You keep tracking down the email addresses of all your friends
(even childhood friends).
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---