From 0f493b8518a8a56b84e5412751841838f3e9f107 Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Wed, 25 Feb 2004 21:47:15 +0000 Subject: bug #230 Revert to Xinerama 1.1 In order to make a "quick" release it has 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. --- xdpyinfo.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/xdpyinfo.c b/xdpyinfo.c index e6ca267..33887ce 100644 --- a/xdpyinfo.c +++ b/xdpyinfo.c @@ -67,7 +67,7 @@ in this Software without prior written authorization from The Open Group. #ifdef XRENDER #include #endif -#ifdef XINERAMA +#ifdef PANORAMIX #include #endif #include @@ -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 */ -- cgit v1.2.3