diff --git a/Xext/saver.c b/Xext/saver.c index be3e0a754..fe9ac1963 100644 --- a/Xext/saver.c +++ b/Xext/saver.c @@ -67,6 +67,8 @@ in this Software without prior written authorization from the X Consortium. // see: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1355 #undef CreateWindow +Bool noScreenSaverExtension = FALSE; + static int ScreenSaverEventBase = 0; static Bool ScreenSaverHandle(ScreenPtr pScreen, int xstate, Bool force); diff --git a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c index a8b110847..182b867a8 100644 --- a/hw/xwayland/xwayland-screen.c +++ b/hw/xwayland/xwayland-screen.c @@ -39,6 +39,7 @@ #include "dix/input_priv.h" #include "dix/property_priv.h" +#include "include/extinit_priv.h" #include "os/osdep.h" #include "os/xserver_poll.h" diff --git a/include/extinit.h b/include/extinit.h index c834ed608..9921bdb3b 100644 --- a/include/extinit.h +++ b/include/extinit.h @@ -62,10 +62,6 @@ extern _X_EXPORT Bool noCompositeExtension; extern _X_EXPORT Bool noPanoramiXExtension; #endif -#if defined(SCREENSAVER) -extern _X_EXPORT Bool noScreenSaverExtension; -#endif - #ifdef MITSHM extern _X_EXPORT Bool noMITShmExtension; #endif diff --git a/include/extinit_priv.h b/include/extinit_priv.h index adf928c26..5e781dcb2 100644 --- a/include/extinit_priv.h +++ b/include/extinit_priv.h @@ -16,6 +16,7 @@ extern Bool noGlxExtension; extern Bool noRenderExtension; extern Bool noResExtension; extern Bool noRRExtension; +extern Bool noScreenSaverExtension; extern Bool noShapeExtension; extern Bool noTestExtensions; diff --git a/os/utils.c b/os/utils.c index 6c4f92200..254e0c5ea 100644 --- a/os/utils.c +++ b/os/utils.c @@ -123,9 +123,6 @@ __stdcall unsigned long GetTickCount(void); #ifdef COMPOSITE Bool noCompositeExtension = FALSE; #endif -#ifdef SCREENSAVER -Bool noScreenSaverExtension = FALSE; -#endif #ifdef MITSHM Bool noMITShmExtension = FALSE; #endif