|
1 To: [email protected] |
|
2 Subject: Patch 7.2.386 |
|
3 Fcc: outbox |
|
4 From: Bram Moolenaar <[email protected]> |
|
5 Mime-Version: 1.0 |
|
6 Content-Type: text/plain; charset=UTF-8 |
|
7 Content-Transfer-Encoding: 8bit |
|
8 ------------ |
|
9 |
|
10 Patch 7.2.386 |
|
11 Problem: Focus hack for KDE 3.1 causes problems for other window managers. |
|
12 Solution: Remove the hack. (forwarded by Joel Bradshaw) |
|
13 Files: src/gui_gtk.c |
|
14 |
|
15 |
|
16 *** ../vim-7.2.385/src/gui_gtk.c 2009-05-17 16:23:20.000000000 +0200 |
|
17 --- src/gui_gtk.c 2010-03-10 12:07:59.000000000 +0100 |
|
18 *************** |
|
19 *** 2313,2331 **** |
|
20 gtk_widget_destroy(dialog); |
|
21 } |
|
22 |
|
23 - /* Terrible hack: When the text area still has focus when we remove the |
|
24 - * dialog, somehow gvim loses window focus. This is with "point to type" |
|
25 - * in the KDE 3.1 window manager. Warp the mouse pointer to outside the |
|
26 - * window and back to avoid that. */ |
|
27 - if (!gui.in_focus) |
|
28 - { |
|
29 - int x, y; |
|
30 - |
|
31 - gdk_window_get_pointer(gui.drawarea->window, &x, &y, NULL); |
|
32 - gui_mch_setmouse(-100, -100); |
|
33 - gui_mch_setmouse(x, y); |
|
34 - } |
|
35 - |
|
36 return response > 0 ? response : 0; |
|
37 } |
|
38 |
|
39 --- 2313,2318 ---- |
|
40 *** ../vim-7.2.385/src/version.c 2010-03-02 18:15:47.000000000 +0100 |
|
41 --- src/version.c 2010-03-10 12:09:00.000000000 +0100 |
|
42 *************** |
|
43 *** 683,684 **** |
|
44 --- 683,686 ---- |
|
45 { /* Add new patch number below this line */ |
|
46 + /**/ |
|
47 + 386, |
|
48 /**/ |
|
49 |
|
50 -- |
|
51 ARTHUR: Well, I AM king... |
|
52 DENNIS: Oh king, eh, very nice. An' how'd you get that, eh? By exploitin' |
|
53 the workers -- by 'angin' on to outdated imperialist dogma which |
|
54 perpetuates the economic an' social differences in our society! If |
|
55 there's ever going to be any progress-- |
|
56 The Quest for the Holy Grail (Monty Python) |
|
57 |
|
58 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ |
|
59 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
|
60 \\\ download, build and distribute -- http://www.A-A-P.org /// |
|
61 \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |