Xace: always build xace

Xace callbacks are needed in many places, and the their overhead (when not
actually used) is really minimal. So it doesn't make much sense having
extra complexity for disabling it at build time.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-16 23:01:06 +02:00
committed by Enrico Weigelt
parent 0580a054a4
commit dcf7890076
5 changed files with 2 additions and 45 deletions

View File

@@ -4,6 +4,7 @@ srcs_xext = [
'shape.c',
'sleepuntil.c',
'sync.c',
'xace.c',
'xcmisc.c',
'xtest.c',
]
@@ -33,10 +34,6 @@ if build_screensaver
srcs_xext += 'saver.c'
endif
if build_xace
srcs_xext += 'xace.c'
endif
if build_xf86bigfont
srcs_xext += 'xf86bigfont.c'
endif

View File

@@ -20,8 +20,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef _XACE_H
#define _XACE_H
#ifdef XACE
#define XACE_MAJOR_VERSION 2
#define XACE_MINOR_VERSION 0
@@ -107,27 +105,4 @@ void XaceCensorImage(ClientPtr client,
int x, int y, int w, int h,
unsigned int format, char *pBuf);
#else /* XACE */
/* Default window background */
#define XaceBackgroundNoneState(w) None
/* Define calls away when XACE is not being built. */
#ifdef __GNUC__
#define XaceHookIsSet(args...) 0
#define XaceHookDispatch(args...) Success
#define XaceHookPropertyAccess(args...) Success
#define XaceHookSelectionAccess(args...) Success
#define XaceCensorImage(args...) { ; }
#else
#define XaceHookIsSet(...) 0
#define XaceHookDispatch(...) Success
#define XaceHookPropertyAccess(...) Success
#define XaceHookSelectionAccess(...) Success
#define XaceCensorImage(...) { ; }
#endif
#endif /* XACE */
#endif /* _XACE_H */

View File

@@ -228,7 +228,7 @@ conf_data.set('RES', build_res ? '1' : false)
conf_data.set('RENDER', '1')
conf_data.set('SCREENSAVER', build_screensaver ? '1' : false)
conf_data.set('SHAPE', '1')
conf_data.set('XACE', build_xace ? '1' : false)
conf_data.set('XACE', '1')
conf_data.set('XCMISC', '1')
conf_data.set('XCSECURITY', build_xsecurity ? '1' : false)
conf_data.set('CONFIG_NAMESPACE', build_namespace ? '1' : false)

View File

@@ -502,22 +502,9 @@ if build_res
build_hashtable = true
endif
build_xace = get_option('xace')
build_xinerama = get_option('xinerama')
build_xsecurity = get_option('xcsecurity')
if build_xsecurity
if not build_xace
error('cannot build Security extension without X-ACE')
endif
endif
build_namespace = get_option('namespace')
if build_namespace
if not build_xace
error('cannot build Container extension without X-ACE')
endif
endif
build_xv = get_option('xv')
build_xvmc = get_option('xvmc')

View File

@@ -82,8 +82,6 @@ option('screensaver', type: 'boolean', value: true,
description: 'ScreenSaver extension')
option('xres', type: 'boolean', value: true,
description: 'XRes extension')
option('xace', type: 'boolean', value: true,
description: 'X-ACE extension')
option('xselinux', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'XSELINUX extension')
option('namespace', type: 'boolean', value: true,