diff options
author | Egbert Eich <eich@suse.de> | 2004-04-23 19:54:43 +0000 |
---|---|---|
committer | Egbert Eich <eich@suse.de> | 2004-04-23 19:54:43 +0000 |
commit | 0f274e479e7825d535ab04aeadd475d47e1769a5 (patch) | |
tree | 4855ac42058589a2f273147802bc76eb3c1cc86f /xdpyinfo.c | |
parent | cccbebfe7ee498cd8beae22831b50d570d623a94 (diff) |
Merging XORG-CURRENT into trunkXACE-SELINUX-MERGE
Diffstat (limited to 'xdpyinfo.c')
-rw-r--r-- | xdpyinfo.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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); |