diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-03-29 15:46:05 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-03-29 15:46:05 +0000 |
commit | de29532f2226ccc12933e200e395ecf557931976 (patch) | |
tree | 4855ac42058589a2f273147802bc76eb3c1cc86f /xdpyinfo.c | |
parent | 5bfa1bbc49ed45df16e4850957bbaf91a41ffb9e (diff) |
merge with XORG-RELEASE-1-TMCYGWIN-PRE-6_8_0-MERGECYGWIN-HEAD-MERGECYGWIN-HEAD-LAST-MERGE
Diffstat (limited to 'xdpyinfo.c')
-rw-r--r-- | xdpyinfo.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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); |