Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!ANDREW.CMU.EDU!dl2n+ From: dl2n+@ANDREW.CMU.EDU (Daniel Edward Lovinger) Newsgroups: comp.windows.x Subject: XGetDefaults in X11 R4 Message-ID:Date: 30 Sep 89 06:58:03 GMT Sender: news@bloom-beacon.MIT.EDU Organization: The Internet Lines: 38 Problem : I am involved in writing a large server based application for X that tries (operative word) to use XGetDefaults for various basic settings. A typical run involves 8-12 seperate displays being run off of a central server. However, when a call to XGetDefaults is made, the following scenario often ensues : Remote display does not have an initialized default structure for whatever reason (user not using defaults). XGetDefaults() discovers this inside of InitDefaults() and loads in the .Xdefaults OF THE PERSON RUNNING THE SERVER. Needless to say, this isn't exactly expected behavior (nor desired ;-) especially when the defaults are supposed to be unique across the displays. Questions : Will this behavior still be present in R4? For the time being, is there any clean way to avoid this problem, ignore .Xdefaults and only pay aattention to the loaded defaults? I am planning on releasing this into the contrib section of the R4 tape and can't include R3 core header files in the distribution. If still present in R4, is there an alternative way of checking defaults that doesn't try to get them from the .Xdefaults? Helf! -------------- dl2n+@andrew.cmu.edu dan lovinger ...!harvard!andrew.cmu.edu!dl2n+ dept of physics