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:
parent
70d08b2909
commit
c8c01b037e
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue