changeset 2283:997f8e481bf8

* xfns.c (Fx_open_connection): If we have X11R5, use XrmSetDatabase to set the display's database. In older versions, just store the value into x_current_display->db.
author Jim Blandy <jimb@redhat.com>
date Sat, 20 Mar 1993 20:48:34 +0000
parents f727944c11aa
children bba90ce247b0
files src/xfns.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sat Mar 20 20:18:44 1993 +0000
+++ b/src/xfns.c	Sat Mar 20 20:48:34 1993 +0000
@@ -3756,7 +3756,11 @@
   else
     xrm_option = (unsigned char *) 0;
   xrdb = x_load_resources (x_current_display, xrm_option, EMACS_CLASS);
+#ifdef HAVE_X11R5
+  XrmSetDatabase (x_current_display, xrdb);
+#else
   x_current_display->db = xrdb;
+#endif
 
   x_screen = DefaultScreenOfDisplay (x_current_display);