From 65e1b5248428b15958e9254435d40080f492e08c Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 2 May 2024 17:33:23 +0200 Subject: [PATCH] (submit/miext-extinit) panoramix: move noPanoramiXExtension field into extension. This field is better of in the corresponding extension, than in the OS layer. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/panoramiX.c | 3 +++ include/extinit.h | 2 ++ os/utils.c | 4 ---- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c index 732e983ba..0ae6e8765 100644 --- a/Xext/panoramiX.c +++ b/Xext/panoramiX.c @@ -65,6 +65,9 @@ extern VisualPtr glxMatchVisual(ScreenPtr pScreen, VisualPtr pVisual, ScreenPtr pMatchScreen); #endif +/* Xinerama is disabled by default unless enabled via +xinerama */ +Bool noPanoramiXExtension = TRUE; + /* * PanoramiX data declarations */ diff --git a/include/extinit.h b/include/extinit.h index ffdcced5a..e08d67e9b 100644 --- a/include/extinit.h +++ b/include/extinit.h @@ -56,6 +56,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #ifdef COMPOSITE extern _X_EXPORT Bool noCompositeExtension; #endif + +/* required by: several video drivers (eg. vmware and sis) */ #ifdef PANORAMIX extern _X_EXPORT Bool noPanoramiXExtension; #endif diff --git a/os/utils.c b/os/utils.c index db63415b7..fcca37375 100644 --- a/os/utils.c +++ b/os/utils.c @@ -156,10 +156,6 @@ Bool noXFree86DRIExtension = FALSE; Bool noXFree86VidModeExtension = FALSE; #endif Bool noXFixesExtension = FALSE; -#ifdef PANORAMIX -/* Xinerama is disabled by default unless enabled via +xinerama */ -Bool noPanoramiXExtension = TRUE; -#endif #ifdef DRI2 Bool noDRI2Extension = FALSE; #endif