home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.2.465 < prev    next >
Encoding:
Internet Message Format  |  2004-04-11  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.465
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.2.465
  11. Problem:    When resizing the GUI window the window manager sometimes moves it
  12.         left of or above the screen. (Michael McCarty)
  13. Solution:   Check the window position after resizing it and move it onto the
  14.         screen when it isn't.
  15. Files:        src/gui.c
  16.  
  17.  
  18. *** ../vim-6.2.464/src/gui.c    Mon Apr  5 19:46:49 2004
  19. --- src/gui.c    Fri Apr  9 11:15:00 2004
  20. ***************
  21. *** 1363,1368 ****
  22. --- 1363,1378 ----
  23.   
  24.       gui_mch_set_shellsize(width, height, min_width, min_height,
  25.                                base_width, base_height);
  26. +     if (fit_to_display)
  27. +     {
  28. +     int        x, y;
  29. +     /* Some window managers put the Vim window left of/above the screen. */
  30. +     gui_mch_update();
  31. +     if (gui_mch_get_winpos(&x, &y) == OK && (x < 0 || y < 0))
  32. +         gui_mch_set_winpos(x < 0 ? 0 : x, y < 0 ? 0 : y);
  33. +     }
  34.       gui_position_components(width);
  35.       gui_update_scrollbars(TRUE);
  36.       gui_reset_scroll_region();
  37. *** ../vim-6.2.464/src/version.c    Fri Apr  9 20:00:54 2004
  38. --- src/version.c    Mon Apr 12 15:39:14 2004
  39. ***************
  40. *** 639,640 ****
  41. --- 639,642 ----
  42.   {   /* Add new patch number below this line */
  43. + /**/
  44. +     465,
  45.   /**/
  46.  
  47. -- 
  48. The early bird gets the worm. If you want something else for
  49. breakfast, get up later.
  50.  
  51.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  52. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  53. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  54.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  55.