From 463f610503cf19f94b8f0c916ae6807fe1d8bf1c Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 2 May 2024 17:03:29 +0200 Subject: [PATCH] (submit/miext-extinit) dpms: unexport noDPMSExtension field This field isn't used by any drivers, and also better belongs into the corresponding extension instead of OS adaption layer. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/dpms.c | 2 ++ include/extinit.h | 4 ---- include/extinit_priv.h | 1 + os/utils.c | 6 ++---- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Xext/dpms.c b/Xext/dpms.c index 68759a48a..397bd5132 100644 --- a/Xext/dpms.c +++ b/Xext/dpms.c @@ -44,6 +44,8 @@ Equipment Corporation. #include "windowstr.h" #include "protocol-versions.h" +Bool noDPMSExtension = FALSE; + CARD16 DPMSPowerLevel = 0; Bool DPMSDisabledSwitch = FALSE; CARD32 DPMSStandbyTime = -1; diff --git a/include/extinit.h b/include/extinit.h index 4b62d6f48..8852c4b95 100644 --- a/include/extinit.h +++ b/include/extinit.h @@ -56,10 +56,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #ifdef COMPOSITE extern _X_EXPORT Bool noCompositeExtension; #endif -#if defined(DPMSExtension) -extern _X_EXPORT Bool noDPMSExtension; -#endif - #ifdef GLXEXT extern _X_EXPORT Bool noGlxExtension; #endif diff --git a/include/extinit_priv.h b/include/extinit_priv.h index d10ce79f2..b4a8fd827 100644 --- a/include/extinit_priv.h +++ b/include/extinit_priv.h @@ -10,6 +10,7 @@ extern Bool noDamageExtension; extern Bool noDbeExtension; +extern Bool noDPMSExtension; extern Bool noGEExtension; void CompositeExtensionInit(void); diff --git a/os/utils.c b/os/utils.c index 3056cd92c..d965f68df 100644 --- a/os/utils.c +++ b/os/utils.c @@ -106,6 +106,7 @@ __stdcall unsigned long GetTickCount(void); #endif #include "dix/dix_priv.h" +#include "include/extinit_priv.h" #include "os/auth.h" #include "os/cmdline.h" #include "os/ddx_priv.h" @@ -117,16 +118,13 @@ __stdcall unsigned long GetTickCount(void); #include "miinitext.h" #include "present.h" #include "dixstruct_priv.h" +#include "dpmsproc.h" Bool noTestExtensions; #ifdef COMPOSITE Bool noCompositeExtension = FALSE; #endif -#ifdef DPMSExtension -#include "dpmsproc.h" -Bool noDPMSExtension = FALSE; -#endif #ifdef GLXEXT Bool noGlxExtension = FALSE; #endif