Friday, May 7, 2010

Re: gvim moves mouse

On 5月5日, 上午2时52分, Bram Moolenaar <B...@Moolenaar.net> wrote:
> Gerhard Siegesmund wrote:
> > I am using ubuntu on one computer and debian unstable on another
> > computer.
>
> > The steps are quite simple. Open up a terminal and edit a file. Then
> > open another terminal (or screen window) and then open the same file
> > using gvim. You get the popup-box showing the message, that the
> > '*.swp'-file already exists. Now when you press "open read only", the
> > popup vanishes, but the cursor is in the upper left corner.
>
> > I have the same problem on debian with ratpoison, which is even more
> > frustrating, as i am using synergy with another computer which means,
> > that I loose focus on this computer as the mouse course even jumps to
> > the other monitor (meaning at least one pixel left of the upper left
> > corner). If you know synergy, you might understand, what I mean. :)
>
> > Hope, this info helps.
>
> I cannot reproduce it. Anything special about your configuration? Did
> you build gvim with Motif instead of GTK perhaps?
>
> Do you have 'mousefocus' set? Still can't reproduce it with that option
> set though.
>
> --
> The Feynman problem solving Algorithm:
> 1) Write down the problem
> 2) Think real hard
> 3) Write down the answer
>
> /// Bram Moolenaar -- B...@Moolenaar.net --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_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visithttp://www.vim.org/maillist.php

A friend of mine and I myself have exactly the same problem.

This happens on Ubuntu 9.10 & 10.04. Most of time, but not always,
when a dialog
popups, clicking any one of the buttons will move the mouse to the top-
left
corner and move it back so the mouse is still there, but moving the
mouse to
top-left corner will trigger a special effect by compiz. Two effects
have been
tested, making sure that gvim has moved the mouse there instead of
triggering
the effect directly.

However, I can't reproduce it without my .vimrc. With --noplugin, it
can still
be reproduced. I managed to find out which option can cause the
problem ---

set lines=38

which is more than the height that my screen can show. Vertically
maxizing the
window or fullscreen using window manager's feature can alse produce
it.

I am using Gnome with compiz as my window manager.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: