0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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)
This commit is contained in:
Bram Moolenaar
2010-03-10 12:25:03 +01:00
parent f679a43dbb
commit 42624592cb
2 changed files with 2 additions and 13 deletions

View 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;
}

View File

@@ -681,6 +681,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
386,
/**/
385,
/**/