Tuesday, May 4, 2010

Re: gvim moves mouse

On 2010-05-04, Gerhard Siegesmund wrote:
> Hello Gary
>
> > While in an xterm window, I opened an existing text file using vim.
> > Then, from another xterm window, I opened the same file using gvim.
> > Gvim displayed the "VIM - ATTENTION" pop-up saying that the swap
> > file already exists. The pop-up appeared to be centered over the
> > gvim window. I clicked on "Open Read-Only" and the pop-up closed,
> > but my mouse pointer stayed exactly where it was on the screen.
> > I repeated the experiment, starting vim as "vim -u NONE myfoo" and
> > starting gvim as "gvim -u NONE" and the results were the same.
>
> That is strange. Nevertheless thanks for the contribution. I am trying
> this out on my second ubuntu installation now.
>
> ...
>
> ... and you are right???! I can't reproduce the problem on this machine.
> Seems i have to dig deeper into my environment. There has to be a tool
> installed on my other two computer that trigger the behaviour. I seem to
> remember, that the cursor wasn't moved visually on the other ubuntu
> installation. nevertheless the action for the upper left corner was
> triggered.
>
> So, if there is no real toggle in gvim to turn off mouse movements, I
> have to look, where else this mouse movement is triggered. Does anyone
> have an idea, how to check which currently running application is moving
> the mouse?

I don't know whether this will help or not, and I'm at a machine
where I can't test it at the moment, but there is a program for X
called xev whose man page says,

Xev creates a window and then asks the X server to send it
events whenever anything happens to the window (such as being
moved, resized, typed in, clicked in, etc.). You can also
attach it to an existing window. It is useful for seeing what
causes events to occur and to display the information that they
contain.

HTH,
Gary

--
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: