summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-06-03 05:55:55 +0000
committerRichard M. Stallman <rms@gnu.org>1993-06-03 05:55:55 +0000
commitebc9936d6a4d80fe69ad492c9b0a8cf654f41afc (patch)
tree739fdad255645e2ee910aa88105e902d8bcee14b
parent949d4ac78ebf71380c79269c221e118290607c51 (diff)
downloademacs-ebc9936d6a4d80fe69ad492c9b0a8cf654f41afc.tar.gz
(x_window): Use Vxrdb_name for res_name field.
Delete the shortname stuff.
-rw-r--r--src/xfns.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 65fada912d1..f2d12df3e02 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1484,8 +1484,6 @@ x_window (f)
XSetWindowAttributes attributes;
unsigned long attribute_mask;
XClassHint class_hints;
- char *shortname;
- char *p;
attributes.background_pixel = f->display.x->background_pixel;
attributes.border_pixel = f->display.x->border_pixel;
@@ -1511,15 +1509,7 @@ x_window (f)
screen_visual, /* set in Fx_open_connection */
attribute_mask, &attributes);
- /* X resource names should not have periods in them.
- So copy the frame name, discarding from the first period onward. */
- shortname = (char *) alloca (XSTRING (f->name)->size + 1);
- bcopy (XSTRING (f->name)->data, shortname, XSTRING (f->name)->size + 1);
- for (p = shortname; *p; p++)
- if (*p == '.')
- *p = 0;
-
- class_hints.res_name = shortname;
+ class_hints.res_name = (char *) XSTRING (Vxrdb_name)->data;
class_hints.res_class = EMACS_CLASS;
XSetClassHint (x_current_display, FRAME_X_WINDOW (f), &class_hints);