summaryrefslogtreecommitdiff
path: root/xdpyinfo.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-04-23 19:54:43 +0000
committerEgbert Eich <eich@suse.de>2004-04-23 19:54:43 +0000
commit0f274e479e7825d535ab04aeadd475d47e1769a5 (patch)
tree4855ac42058589a2f273147802bc76eb3c1cc86f /xdpyinfo.c
parentcccbebfe7ee498cd8beae22831b50d570d623a94 (diff)
Merging XORG-CURRENT into trunkXACE-SELINUX-MERGE
Diffstat (limited to 'xdpyinfo.c')
-rw-r--r--xdpyinfo.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index 33887ce..607078f 100644
--- a/xdpyinfo.c
+++ b/xdpyinfo.c
@@ -29,7 +29,7 @@ in this Software without prior written authorization from The Open Group.
* Author: Jim Fulton, MIT X Consortium
*/
-/* $XFree86: xc/programs/xdpyinfo/xdpyinfo.c,v 3.30 2003/11/17 22:20:51 dawes Exp $ */
+/* $XFree86: xc/programs/xdpyinfo/xdpyinfo.c,v 3.29 2003/04/14 20:38:10 herrb Exp $ */
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -174,6 +174,18 @@ print_display_info(Display *dpy)
printf("\n");
}
+ if (strstr(ServerVendor (dpy), "X.Org")) {
+ int vendrel = VendorRelease(dpy);
+
+ printf("X.Org version: ");
+ printf("%d.%d.%d", vendrel / 10000000,
+ (vendrel / 100000) % 100,
+ (vendrel / 1000) % 100);
+ if (vendrel % 1000)
+ printf(".%d", vendrel % 1000);
+ printf("\n");
+ }
+
req_size = XExtendedMaxRequestSize (dpy);
if (!req_size) req_size = XMaxRequestSize (dpy);
printf ("maximum request size: %ld bytes\n", req_size * 4);