From 01bb7f6a044b2f122e49b9ee9e79e46c4b660f49 Mon Sep 17 00:00:00 2001 From: Roland Mainz Date: Sat, 10 Apr 2004 09:05:49 +0000 Subject: Resync to 2004-04-10 XORG-RELEASE-1 branch --- xdpyinfo.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xdpyinfo.c b/xdpyinfo.c index 001cbd1..607078f 100644 --- a/xdpyinfo.c +++ b/xdpyinfo.c @@ -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); -- cgit v1.2.3