mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
(x_window): Request "save yourself" commands.
This commit is contained in:
parent
7757c47617
commit
032e4ebe99
1 changed files with 7 additions and 2 deletions
|
|
@ -2051,9 +2051,14 @@ 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);
|
||||
|
||||
/* 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue