diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2004-02-25 21:47:15 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2004-02-25 21:47:15 +0000 |
commit | 0f493b8518a8a56b84e5412751841838f3e9f107 (patch) | |
tree | bb7cd5b2720430ffd211aeb6ea050425a5498548 /xdpyinfo.c | |
parent | 7d9bd9a8721a99bb9db6ca43cca3bc87553b5b85 (diff) |
bug #230 Revert to Xinerama 1.1 In order to make a "quick" release it hasXORG-RELEASE-1-BASEXEVIE-MERGE
been decided that the priority is to preserve the server's internal
API/ABI so that third-party drivers that depend on symbols like
noPanoramiXExtension, etc., would not need to be recompiled. Too bad
gcc on Linux doesn't support ELF's weak symbols as that would have been
a reasonable solution for preserving the ABI. N.B.: While symbols, i.e.
functions and variables revert to the old name, I did not revert build
names, i.e. -DXINERAMA, to the old -DPANORAMIX. There was no need, and
it's just a build issue that has no impact on the binary output of the
build.
Diffstat (limited to 'xdpyinfo.c')
-rw-r--r-- | xdpyinfo.c | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -67,7 +67,7 @@ in this Software without prior written authorization from The Open Group. #ifdef XRENDER #include <X11/extensions/Xrender.h> #endif -#ifdef XINERAMA +#ifdef PANORAMIX #include <X11/extensions/Xinerama.h> #endif #include <X11/Xos.h> @@ -971,7 +971,7 @@ print_xrender_info(Display *dpy, char *extname) #endif /* XRENDER */ -#ifdef XINERAMA +#ifdef PANORAMIX static int print_xinerama_info(Display *dpy, char *extname) @@ -983,27 +983,25 @@ print_xinerama_info(Display *dpy, char *extname) print_standard_extension_info(dpy, extname, majorrev, minorrev); - if (!XineramaActive(dpy, DefaultRootWindow(dpy))) { + if (!XineramaIsActive(dpy)) { printf(" Xinerama is inactive.\n"); } else { int i, count = 0; - XRectangle *screens; - - XineramaGetData(dpy, DefaultRootWindow(dpy), &screens, &count); + XineramaScreenInfo *xineramaScreens = XineramaQueryScreens(dpy, &count); for (i = 0; i < count; i++) { - XRectangle *xs = &screens[i]; - printf(" head #%d: %dx%d @ %d,%d\n", i, - xs->width, xs->height, xs->x, xs->y); + XineramaScreenInfo *xs = &xineramaScreens[i]; + printf(" head #%d: %dx%d @ %d,%d\n", xs->screen_number, + xs->width, xs->height, xs->x_org, xs->y_org); } - XFree(screens); + XFree(xineramaScreens); } return 1; } -#endif /* XINERAMA */ +#endif /* PANORAMIX */ /* utilities to manage the list of recognized extensions */ @@ -1050,7 +1048,7 @@ ExtensionPrintInfo known_extensions[] = #ifdef XRENDER {RENDER_NAME, print_xrender_info, False}, #endif -#ifdef XINERAMA +#ifdef PANORAMIX {"XINERAMA", print_xinerama_info, False}, #endif /* add new extensions here */ |