changeset 7860:26a1d7b2670b

(x_window): Request "save yourself" commands.
author Richard M. Stallman <rms@gnu.org>
date Sun, 12 Jun 1994 15:43:34 +0000
parents 1d1693211560
children 8996abee8718
files src/xfns.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sun Jun 12 14:37:21 1994 +0000
+++ b/src/xfns.c	Sun Jun 12 15:43:34 1994 +0000
@@ -2051,9 +2051,14 @@
   f->display.x->wm_hints.input = True;
   f->display.x->wm_hints.flags |= InputHint;
   XSetWMHints (x_current_display, FRAME_X_WINDOW (f), &f->display.x->wm_hints);
-  XSetWMProtocols (x_current_display, FRAME_X_WINDOW (f),
-		   &Xatom_wm_delete_window, 1);
-
+
+  /* Request "save yourself" and "delete window" commands from wm.  */
+  {
+    Atom protocols[2];
+    protocols[0] = Xatom_wm_delete_window;
+    protocols[1] = Xatom_wm_save_yourself;
+    XSetWMProtocols (x_current_display, FRAME_X_WINDOW (f), protocols, 2);
+  }
 
   /* x_set_name normally ignores requests to set the name if the
      requested name is the same as the current name.  This is the one