xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Feb 6 16:21:16 UTC 2025


 hw/xnest/meson.build |    2 +-
 mi/miinitext.c       |   11 +++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

New commits:
commit d79432e0d457f66dc07051586d97c7d469892db0
Author: Enrico Weigelt, metux IT consult <info at metux.net>
Date:   Thu Feb 15 17:59:56 2024 +0100

    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 at metux.net>
    Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1401>

diff --git a/hw/xnest/meson.build b/hw/xnest/meson.build
index 37ac5a691..1a981b906 100644
--- a/hw/xnest/meson.build
+++ b/hw/xnest/meson.build
@@ -33,7 +33,7 @@ executable(
         libxserver_xi_stubs,
         libxserver_xkb_stubs,
     ],
-    c_args: '-DHAVE_XNEST_CONFIG_H',
+    c_args: [ '-DHAVE_XNEST_CONFIG_H', '-DDISABLE_EXT_COMPOSITE', '-DDISABLE_EXT_DPMS', '-DISABLE_EXT_MITSHM' ],
     install: true,
 )
 
diff --git a/mi/miinitext.c b/mi/miinitext.c
index a04ea043e..67fd33fab 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -78,12 +78,19 @@ SOFTWARE.
 #include "xf86Extensions.h"
 #endif
 
-#ifdef HAVE_XNEST_CONFIG_H
-#include <xnest-config.h>
+/* some DDXes must explicitly prohibit some extensions */
+#ifdef DISABLE_EXT_COMPOSITE
 #undef COMPOSITE
+#endif
+
+#ifdef DISABLE_EXT_DPMS
 #undef DPMSExtension
 #endif
 
+#ifdef DISABLE_EXT_MITSHM
+#undef MITSHM
+#endif
+
 #include "misc.h"
 #include "extension.h"
 #include "extinit_priv.h"


More information about the xorg-commit mailing list