Xnest: tidy up extension blacklisting in miinitext.c

The DDX'es sometimes need to disable certain extensions. Instead of complex
include cascades with ifdef'ed ddx-specific include from dix code, it's
more clean to add some clear and explicit knobs set by the DDX'es individual
meson.build.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-15 17:59:56 +01:00
parent 70d08b2909
commit c8c01b037e
2 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,7 @@ executable(
libxserver_xi_stubs, libxserver_xi_stubs,
libxserver_xkb_stubs, libxserver_xkb_stubs,
], ],
c_args: '-DHAVE_XNEST_CONFIG_H', c_args: [ '-DDISABLE_EXT_COMPOSITE', '-DDISABLE_EXT_DPMS', '-DISABLE_EXT_MITSHM' ],
install: true, install: true,
) )

View File

@ -78,9 +78,12 @@ SOFTWARE.
#include "xf86Extensions.h" #include "xf86Extensions.h"
#endif #endif
#ifdef HAVE_XNEST_CONFIG_H /* some DDXes must explicitly prohibit some extensions */
#include <xnest-config.h> #ifdef DISABLE_EXT_COMPOSITE
#undef COMPOSITE #undef COMPOSITE
#endif
#ifdef DISABLE_EXT_DPMS
#undef DPMSExtension #undef DPMSExtension
#endif #endif