4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Win32: When changing font the window may jump from the secondary
12 to the primary screen. (Michael Wookey)
13 Solution: When the screen position was negative don't correct it to zero.
17 *** ../vim-7.2.349/src/gui.c 2009-09-23 18:14:13.000000000 +0200
18 --- src/gui.c 2010-01-27 21:02:32.000000000 +0100
22 int un_maximize = mustset;
27 if (!gui.shell_created)
33 base_width = gui_get_base_width();
34 base_height = gui_get_base_height();
36 + /* Remember the original window position. */
37 + gui_mch_get_winpos(&x, &y);
39 #ifdef USE_SUN_WORKSHOP
40 if (!mustset && usingSunWorkShop
41 && workshop_get_width_height(&width, &height))
45 gui_mch_set_shellsize(width, height, min_width, min_height,
46 base_width, base_height, direction);
51 ! /* Some window managers put the Vim window left of/above the screen. */
53 if (gui_mch_get_winpos(&x, &y) == OK && (x < 0 || y < 0))
54 gui_mch_set_winpos(x < 0 ? 0 : x, y < 0 ? 0 : y);
57 gui_mch_set_shellsize(width, height, min_width, min_height,
58 base_width, base_height, direction);
60 ! if (fit_to_display && x >= 0 && y >= 0)
62 ! /* Some window managers put the Vim window left of/above the screen.
63 ! * Only change the position if it wasn't already negative before
64 ! * (happens on MS-Windows with a secondary monitor). */
66 if (gui_mch_get_winpos(&x, &y) == OK && (x < 0 || y < 0))
67 gui_mch_set_winpos(x < 0 ? 0 : x, y < 0 ? 0 : y);
68 *** ../vim-7.2.349/src/version.c 2010-01-27 20:26:41.000000000 +0100
69 --- src/version.c 2010-01-27 21:03:41.000000000 +0100
73 { /* Add new patch number below this line */
79 hundred-and-one symptoms of being an internet addict:
80 160. You get in the elevator and double-click the button for the floor
83 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
84 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
85 \\\ download, build and distribute -- http://www.A-A-P.org ///
86 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///