From 22976f77616a10df73162b61a13c8644cdfa9761cf82f3df93e8c2ff873380cb Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 31 May 2008 10:14:36 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vim?expand=0&rev=26 --- vim-7.1-remove-terrible-hack.patch | 24 ++++++++++++++++++++++++ vim.changes | 7 +++++++ vim.spec | 8 +++++++- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 vim-7.1-remove-terrible-hack.patch diff --git a/vim-7.1-remove-terrible-hack.patch b/vim-7.1-remove-terrible-hack.patch new file mode 100644 index 0000000..43067bb --- /dev/null +++ b/vim-7.1-remove-terrible-hack.patch @@ -0,0 +1,24 @@ +Index: src/gui_gtk.c +=================================================================== +--- src/gui_gtk.c.orig ++++ src/gui_gtk.c +@@ -2320,19 +2320,6 @@ gui_mch_dialog(int type, /* type of + 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; + } + diff --git a/vim.changes b/vim.changes index f791f66..57e78cc 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed May 28 13:40:09 CEST 2008 - rodrigo@suse.de + +- Added vim-7.1-remove-terrible-hack.patch to remove a "terrible" + hack that was moving the mouse 100 pixels to the top left for + KDE 3.1 window manager (bnc#392061) + ------------------------------------------------------------------- Wed Apr 30 17:34:47 CEST 2008 - mkoenig@suse.de diff --git a/vim.spec b/vim.spec index 7885c83..82959cc 100644 --- a/vim.spec +++ b/vim.spec @@ -13,7 +13,7 @@ Name: vim Version: 7.1 -Release: 115 +Release: 125 # License: Other uncritical OpenSource License; http://vimdoc.sourceforge.net/htmldoc/uganda.html#license Group: Productivity/Editors/Vi @@ -86,6 +86,7 @@ Patch18: vim-7.1-filetype_spec.patch Patch19: vim-7.1-diff_check.patch Patch20: vim-7.1-netrw_urlencode.patch Patch21: vim-7.1-filetype_changes.patch +Patch22: vim-7.1-remove-terrible-hack.patch # tbd??? %name-6.3-ga-utf8.diff # tbd??? %name-6.3-initvals.diff # tbd??? vim64-svn-crash.patch @@ -294,6 +295,7 @@ Authors: %patch19 -p1 %patch20 -p1 %patch21 -p1 +%patch22 cp %{S:3} %{S:4} %{S:5} %{S:6} %{S:8} %{S:9} %{S:10} . rename no nb $RPM_BUILD_DIR/vim*/src/po/no.* rename menu_no menu_nb $RPM_BUILD_DIR/vim*/runtime/lang/menu_no* @@ -656,6 +658,10 @@ fi %endif %changelog +* Wed May 28 2008 rodrigo@suse.de +- Added vim-7.1-remove-terrible-hack.patch to remove a "terrible" + hack that was moving the mouse 100 pixels to the top left for + KDE 3.1 window manager (bnc#392061) * Wed Apr 30 2008 mkoenig@suse.de - use Utility as primary category for the desktop file [bnc#382779] * Wed Mar 12 2008 mkoenig@suse.de