Mercurial > emacs
comparison src/xterm.c @ 7870:537930034e73
(XTread_socket): Handle Xatom_wm_save_yourself by calling XSetCommand.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 13 Jun 1994 20:41:21 +0000 |
parents | ef7a60d59543 |
children | 22b9aaaf0302 |
comparison
equal
deleted
inserted
replaced
7869:3b27d2451f83 | 7870:537930034e73 |
---|---|
175 | 175 |
176 /* Stuff for dealing with the main icon title. */ | 176 /* Stuff for dealing with the main icon title. */ |
177 | 177 |
178 extern Lisp_Object Vcommand_line_args; | 178 extern Lisp_Object Vcommand_line_args; |
179 char *hostname, *x_id_name; | 179 char *hostname, *x_id_name; |
180 | |
181 /* Initial values of argv and argc. */ | |
182 extern char **initial_argv; | |
183 extern int initial_argc; | |
180 | 184 |
181 /* This is the X connection that we are using. */ | 185 /* This is the X connection that we are using. */ |
182 | 186 |
183 Display *x_current_display; | 187 Display *x_current_display; |
184 | 188 |
3438 the session manager, who's looking for such a | 3442 the session manager, who's looking for such a |
3439 PropertyNotify. Can restart processing when | 3443 PropertyNotify. Can restart processing when |
3440 a keyboard or mouse event arrives. */ | 3444 a keyboard or mouse event arrives. */ |
3441 if (numchars > 0) | 3445 if (numchars > 0) |
3442 { | 3446 { |
3447 /* This is just so we only give real data once | |
3448 for a single Emacs process. */ | |
3449 if (event.xclient.window | |
3450 == FRAME_X_WINDOW (selected_frame)) | |
3451 XSetCommand (x_current_display, | |
3452 event.xclient.window, | |
3453 initial_argv, initial_argc); | |
3454 else | |
3455 XSetCommand (x_current_display, | |
3456 event.xclient.window, | |
3457 0, 0); | |
3443 } | 3458 } |
3444 } | 3459 } |
3445 else if (event.xclient.data.l[0] == Xatom_wm_delete_window) | 3460 else if (event.xclient.data.l[0] == Xatom_wm_delete_window) |
3446 { | 3461 { |
3447 struct frame *f = x_any_window_to_frame (event.xclient.window); | 3462 struct frame *f = x_any_window_to_frame (event.xclient.window); |