aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-03-20 20:48:34 +0000
committerJim Blandy1993-03-20 20:48:34 +0000
commiteb5d618c18e7e75a82adc7b441cf18da07a337f4 (patch)
tree180a934bcccf57aa5eb323047e0b579d2be84bd5
parentb49f55787d815354b461f73c7cd7681370c10ac8 (diff)
downloademacs-eb5d618c18e7e75a82adc7b441cf18da07a337f4.tar.gz
emacs-eb5d618c18e7e75a82adc7b441cf18da07a337f4.zip
* 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.
-rw-r--r--src/xfns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index cf55cc6c3e1..8d411508dcd 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3756,7 +3756,11 @@ arg XRM_STRING is a string of resources in xrdb format.")
3756 else 3756 else
3757 xrm_option = (unsigned char *) 0; 3757 xrm_option = (unsigned char *) 0;
3758 xrdb = x_load_resources (x_current_display, xrm_option, EMACS_CLASS); 3758 xrdb = x_load_resources (x_current_display, xrm_option, EMACS_CLASS);
3759#ifdef HAVE_X11R5
3760 XrmSetDatabase (x_current_display, xrdb);
3761#else
3759 x_current_display->db = xrdb; 3762 x_current_display->db = xrdb;
3763#endif
3760 3764
3761 x_screen = DefaultScreenOfDisplay (x_current_display); 3765 x_screen = DefaultScreenOfDisplay (x_current_display);
3762 3766