aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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