]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.386 v7.2.386
authorBram Moolenaar <Bram@vim.org>
Wed, 10 Mar 2010 11:25:03 +0000 (12:25 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 10 Mar 2010 11:25:03 +0000 (12:25 +0100)
Problem:    Focus hack for KDE 3.1 causes problems for other window managers.
Solution:   Remove the hack. (forwarded by Joel Bradshaw)

src/gui_gtk.c
src/version.c

index 0535e204f7ad9c90745448d078c1fc75542f3f9f..6a657a3ee8ae914c2837990deba858b6dc2cb0cb 100644 (file)
@@ -2313,19 +2313,6 @@ gui_mch_dialog(int       type,       /* type of dialog */
        gtk_widget_destroy(dialog);
     }
 
-    /* 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);
-    }
-
     return response > 0 ? response : 0;
 }
 
index b4f673676ab24f88157b9b43234e2a115985f0c4..46014e2281f4a3d5e52f4d27253a874584e2a7cd 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    386,
 /**/
     385,
 /**/