aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-12 15:43:34 +0000
committerRichard M. Stallman1994-06-12 15:43:34 +0000
commit032e4ebe994dc8c14f62bab11cf19d4465ba1b34 (patch)
tree08323accf9cd0a439ef7ab6683da059ce79df916 /src
parent7757c47617d547d12794e73a2a7dcb9ded525b33 (diff)
downloademacs-032e4ebe994dc8c14f62bab11cf19d4465ba1b34.tar.gz
emacs-032e4ebe994dc8c14f62bab11cf19d4465ba1b34.zip
(x_window): Request "save yourself" commands.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 4a884060436..4acef369224 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2051,9 +2051,14 @@ x_window (f)
2051 f->display.x->wm_hints.input = True; 2051 f->display.x->wm_hints.input = True;
2052 f->display.x->wm_hints.flags |= InputHint; 2052 f->display.x->wm_hints.flags |= InputHint;
2053 XSetWMHints (x_current_display, FRAME_X_WINDOW (f), &f->display.x->wm_hints); 2053 XSetWMHints (x_current_display, FRAME_X_WINDOW (f), &f->display.x->wm_hints);
2054 XSetWMProtocols (x_current_display, FRAME_X_WINDOW (f),
2055 &Xatom_wm_delete_window, 1);
2056 2054
2055 /* Request "save yourself" and "delete window" commands from wm. */
2056 {
2057 Atom protocols[2];
2058 protocols[0] = Xatom_wm_delete_window;
2059 protocols[1] = Xatom_wm_save_yourself;
2060 XSetWMProtocols (x_current_display, FRAME_X_WINDOW (f), protocols, 2);
2061 }
2057 2062
2058 /* x_set_name normally ignores requests to set the name if the 2063 /* x_set_name normally ignores requests to set the name if the
2059 requested name is the same as the current name. This is the one 2064 requested name is the same as the current name. This is the one