0d12ac6
To: vim-dev@vim.org
0d12ac6
Subject: Patch 7.2.386
0d12ac6
Fcc: outbox
0d12ac6
From: Bram Moolenaar <Bram@moolenaar.net>
0d12ac6
Mime-Version: 1.0
0d12ac6
Content-Type: text/plain; charset=UTF-8
0d12ac6
Content-Transfer-Encoding: 8bit
0d12ac6
------------
0d12ac6
0d12ac6
Patch 7.2.386
0d12ac6
Problem:    Focus hack for KDE 3.1 causes problems for other window managers.
0d12ac6
Solution:   Remove the hack. (forwarded by Joel Bradshaw)
0d12ac6
Files:	    src/gui_gtk.c
0d12ac6
0d12ac6
0d12ac6
*** ../vim-7.2.385/src/gui_gtk.c	2009-05-17 16:23:20.000000000 +0200
0d12ac6
--- src/gui_gtk.c	2010-03-10 12:07:59.000000000 +0100
0d12ac6
***************
0d12ac6
*** 2313,2331 ****
0d12ac6
  	gtk_widget_destroy(dialog);
0d12ac6
      }
0d12ac6
  
0d12ac6
-     /* Terrible hack: When the text area still has focus when we remove the
0d12ac6
-      * dialog, somehow gvim loses window focus.  This is with "point to type"
0d12ac6
-      * in the KDE 3.1 window manager.  Warp the mouse pointer to outside the
0d12ac6
-      * window and back to avoid that. */
0d12ac6
-     if (!gui.in_focus)
0d12ac6
-     {
0d12ac6
- 	int x, y;
0d12ac6
- 
0d12ac6
- 	gdk_window_get_pointer(gui.drawarea->window, &x, &y, NULL);
0d12ac6
- 	gui_mch_setmouse(-100, -100);
0d12ac6
- 	gui_mch_setmouse(x, y);
0d12ac6
-     }
0d12ac6
- 
0d12ac6
      return response > 0 ? response : 0;
0d12ac6
  }
0d12ac6
  
0d12ac6
--- 2313,2318 ----
0d12ac6
*** ../vim-7.2.385/src/version.c	2010-03-02 18:15:47.000000000 +0100
0d12ac6
--- src/version.c	2010-03-10 12:09:00.000000000 +0100
0d12ac6
***************
0d12ac6
*** 683,684 ****
0d12ac6
--- 683,686 ----
0d12ac6
  {   /* Add new patch number below this line */
0d12ac6
+ /**/
0d12ac6
+     386,
0d12ac6
  /**/
0d12ac6
0d12ac6
-- 
0d12ac6
ARTHUR:  Well, I AM king...
0d12ac6
DENNIS:  Oh king, eh, very nice.  An' how'd you get that, eh?  By exploitin'
0d12ac6
         the workers -- by 'angin' on to outdated imperialist dogma which
0d12ac6
         perpetuates the economic an' social differences in our society!  If
0d12ac6
         there's ever going to be any progress--
0d12ac6
                                  The Quest for the Holy Grail (Monty Python)
0d12ac6
0d12ac6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
0d12ac6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
0d12ac6
\\\        download, build and distribute -- http://www.A-A-P.org        ///
0d12ac6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///