summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-03-18 15:44:01 +0000
committerEgbert Eich <eich@suse.de>2004-03-18 15:44:01 +0000
commit65880bfa9fe0425f8d2ae30deae9ab4d7ef278ff (patch)
tree4855ac42058589a2f273147802bc76eb3c1cc86f
parent9eaa510831e9bde0eb2b9582bb95be614a24ac12 (diff)
5. Fix xdpyinfo to deal with Xorg version strings (Egbert Eich).XORG-TM-CYGWIN-MERGEXORG-TM-CYGWIN-LAST-MERGEXORG-RELEASE-1-TM-CLOSED
4. Changed config file to xorg.cfg (Egbert Eich). 3. Fixed ABI versions, support address pointers, message in configuration file generated with -configure (Egbert Eich).
-rw-r--r--xdpyinfo.c12
1 files changed, 12 insertions, 0 deletions
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);