Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!apple!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: Re: How does one find the X11 minor release number? Message-ID: <8905061635.AA12413@expire.lcs.mit.edu> Date: 6 May 89 16:35:35 GMT References: <4549@psuvax1.cs.psu.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 19 Is it possible from a running program to determine what the minor version numbers is for X11? Yes and no. First, I think you really mean "release number", not "minor version number". "Minor version number" would indicate a change to the underlying X protocol, and from Xlib is found with ProtocolRevision(). The "release number" of a server can be obtained with VendorRelease(), but the interpretation of this number is up to each vendor, there's no guarantee it matches the MIT release number. So, you need to check ServerVendor() as well. For an MIT distribution, this string will be "MIT X Consortium". And, of course, there's no guarantee that all clients on a given machine will all correspond to that vendor's release. It sure would be nice if xrdb would define a symbol like X11R2 or X11R3 based on which version was actually in use. It sounds pretty hard to decide what you really mean here.