On Mon, 3 May 2010, Gerhard Siegesmund wrote:

> Hello all
> 
> Just a small question. Maybe this is a problem with my configuration.  
> Whenever a error popup opens (e.g. when the file to open already is 
> opened) after the popup vanishes the mouse cursor is moved to the 
> upper left corner of the screen.
> 
> This would not be such a problem, if the upper left corner wasn't 
> active. When the mouse is in the upper left corner the desktop is 
> shown.  Effectively if a error popup appears, all my windows vanish 
> after closing the popup. Not really a problem, but soft of a nuisance. 
> It would be great, if I could turn off that behaviour.
> 

I noticed that the problem was present on one of my Gentoo boxes (@7.2.303),
but not the other (@7.2.411), with identical configuration.

Bisecting based on what versions Gentoo has in portage, the fix came between
.376 and .402, so I'm pretty sure it was patch 386:

    updated for version 7.2.386
        Problem:    Focus hack for KDE 3.1 causes problems for other window 
        managers.
        Solution:   Remove the hack. (forwarded by Joel Bradshaw)

which removed these lines:

-    /* Terrible hack: When the text area still has focus when we remove the
-     * dialog, somehow gvim loses window focus.  This is with "point to type"
-     * in the KDE 3.1 window manager.  Warp the mouse pointer to outside the
-     * window and back to avoid that. */
-    if (!gui.in_focus)
-    {
-       int x, y;
-
-       gdk_window_get_pointer(gui.drawarea->window, &x, &y, NULL);
-       gui_mch_setmouse(-100, -100);
-       gui_mch_setmouse(x, y);
-    }
-

-- 
Best,
Ben

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

Reply via email to