From dcce9abd1c4d56f1ca876ba3b2141ebd65a57964 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 26 Nov 1993 21:50:57 +0000 Subject: [PATCH] (x_window): Call XSetWMProtocols. --- src/xfns.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xfns.c b/src/xfns.c index 249f89ba756..754389db743 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -1574,6 +1574,8 @@ x_window (f) 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); /* 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 -- 2.39.5