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.6.039 < prev    next >
Encoding:
Internet Message Format  |  2000-03-29  |  1.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.6.039
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.6.039
  8. Problem:    Motif GUI under KDE: When trying to logout, Vim hangs up the
  9.         system. (Hermann Rochholz)
  10. Solution:   When handling the WM_SAVE_YOURSELF event, set the WM_COMMAND
  11.         property of the window to let the session manager know we finished
  12.         saving ourselves.
  13. Files:        src/gui_x11.c
  14.  
  15.  
  16. *** ../vim-5.6.38/src/gui_x11.c    Sun Jan 16 16:26:41 2000
  17. --- src/gui_x11.c    Wed Mar 29 12:33:55 2000
  18. ***************
  19. *** 2353,2359 ****
  20.       return;
  21.   
  22.       /*
  23. !      * SAVE_YOURSELF can arrive at any moment (not only when crashing!).
  24.        * Just sync our swap files.
  25.        */
  26.       if (((XClientMessageEvent *)event)->data.l[0] ==
  27. --- 2353,2360 ----
  28.       return;
  29.   
  30.       /*
  31. !      * The WM_SAVE_YOURSELF event arrives when the window manager wants to
  32. !      * exit.  That can be cancelled though, thus Vim shouldn't exit here.
  33.        * Just sync our swap files.
  34.        */
  35.       if (((XClientMessageEvent *)event)->data.l[0] ==
  36. ***************
  37. *** 2361,2366 ****
  38. --- 2362,2372 ----
  39.       {
  40.       out_flush();
  41.       ml_sync_all(FALSE, FALSE);    /* preserve all swap files */
  42. +     /* Set the window's WM_COMMAND property, to let the window manager
  43. +      * know we are done saving ourselves.  We don't want to be restarted,
  44. +      * thus set argv to NULL. */
  45. +     XSetCommand(gui.dpy, XtWindow(vimShell), NULL, 0);
  46.       return;
  47.       }
  48.   
  49. *** ../vim-5.6.38/src/version.c    Tue Mar 28 17:54:16 2000
  50. --- src/version.c    Wed Mar 29 12:35:09 2000
  51. ***************
  52. *** 420,421 ****
  53. --- 420,423 ----
  54.   {   /* Add new patch number below this line */
  55. + /**/
  56. +     39,
  57.   /**/
  58.  
  59. -- 
  60.     With sufficient thrust, pigs fly just fine.
  61.                    -- RFC 1925
  62.  
  63. /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\
  64. \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
  65.