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 / old / 5.4.x9 < prev    next >
Encoding:
Internet Message Format  |  1999-08-26  |  1.4 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 5.4.x9
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.4.x9
  8. Problem:    Win32 GUI: After executing an external command, focus is not
  9.             always regained (when using focus-follows-mouse).
  10. Solution:   Add SetFocus() in mch_system(). (Mike Steed)
  11. Files:      src/os_win32.c
  12.  
  13.  
  14. *** ../vim-5.4.47/src/os_win32.c    Sun Aug 22 16:12:25 1999
  15. --- src/os_win32.c    Fri Aug 27 20:50:37 1999
  16. ***************
  17. *** 2276,2281 ****
  18. --- 2276,2282 ----
  19.       STARTUPINFO        si;
  20.       PROCESS_INFORMATION pi;
  21.       DWORD        ret = 0;
  22. +     HWND        hwnd = GetFocus();
  23.   
  24.       si.cb = sizeof(si);
  25.       si.lpReserved = NULL;
  26. ***************
  27. *** 2382,2387 ****
  28. --- 2383,2391 ----
  29.       if (fUseConsole)
  30.       mch_close_console(!(options & SHELL_DOOUT), ret);
  31.   #endif
  32. +     /* Try to get input focus back.  Doesn't always work though. */
  33. +     SetFocus(hwnd);
  34.   
  35.       return ret;
  36.   }
  37.  
  38. --
  39. MAN:     You don't frighten us, English pig-dog!  Go and boil your bottoms,
  40.          son of a silly person.  I blow my nose on you, so-called Arthur-king,
  41.          you and your silly English K...kaniggets.
  42.    He puts hands to his ears and blows a raspberry.
  43.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  44.  
  45. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  46.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  47.