diff options
| author | Jim Blandy | 1992-07-21 22:16:39 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-07-21 22:16:39 +0000 |
| commit | 62265f1cbfcb2c1659fd71eca090327e9d43eb43 (patch) | |
| tree | 50472eab1697e5bb0c2c4c5cc20d44ca9a2f5d66 /src | |
| parent | bd1f66a0cb901d77dcf928b9b7464915c48c330f (diff) | |
| download | emacs-62265f1cbfcb2c1659fd71eca090327e9d43eb43.tar.gz emacs-62265f1cbfcb2c1659fd71eca090327e9d43eb43.zip | |
entered into RCS
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c index 5eef329e6ca..bdba50379fc 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1041,7 +1041,11 @@ x_set_name (f, arg, oldval) | |||
| 1041 | struct frame *f; | 1041 | struct frame *f; |
| 1042 | Lisp_Object arg, oldval; | 1042 | Lisp_Object arg, oldval; |
| 1043 | { | 1043 | { |
| 1044 | CHECK_STRING (arg, 0); | 1044 | /* If ARG is nil, set the name to the x_id_name. */ |
| 1045 | if (NILP (arg)) | ||
| 1046 | arg = build_string (x_id_name); | ||
| 1047 | else | ||
| 1048 | CHECK_STRING (arg, 0); | ||
| 1045 | 1049 | ||
| 1046 | /* Don't change the name if it's already ARG. */ | 1050 | /* Don't change the name if it's already ARG. */ |
| 1047 | if (! NILP (Fstring_equal (arg, f->name))) | 1051 | if (! NILP (Fstring_equal (arg, f->name))) |
| @@ -1063,7 +1067,7 @@ x_set_name (f, arg, oldval) | |||
| 1063 | BLOCK_INPUT; | 1067 | BLOCK_INPUT; |
| 1064 | XStoreName (XDISPLAY f->display.x->window_desc, | 1068 | XStoreName (XDISPLAY f->display.x->window_desc, |
| 1065 | (char *) XSTRING (arg)->data); | 1069 | (char *) XSTRING (arg)->data); |
| 1066 | XSetIconName (XDISPLAY f->display.x->window_desc, | 1070 | XSetIconName (XDISPLAY f->display.x->window_desc, |
| 1067 | (char *) XSTRING (arg)->data); | 1071 | (char *) XSTRING (arg)->data); |
| 1068 | UNBLOCK_INPUT; | 1072 | UNBLOCK_INPUT; |
| 1069 | #endif | 1073 | #endif |