From 2567388a2957cef526df1b7efb2684aa74feb641 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Sun, 27 Nov 2022 22:23:43 -0800 Subject: [PATCH] xquartz: Disable COMPOSITE at runtime Signed-off-by: Jeremy Huddleston Sequoia --- hw/xquartz/mach-startup/bundle-main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hw/xquartz/mach-startup/bundle-main.c b/hw/xquartz/mach-startup/bundle-main.c index 353e1d2bc..de82e2280 100644 --- a/hw/xquartz/mach-startup/bundle-main.c +++ b/hw/xquartz/mach-startup/bundle-main.c @@ -72,6 +72,10 @@ FatalError(const char *f, ...) _X_ATTRIBUTE_PRINTF(1, 2) _X_NORETURN; extern int noPanoramiXExtension; +#ifdef COMPOSITE +extern Bool noCompositeExtension; +#endif + #define DEFAULT_CLIENT X11BINDIR "/xterm" #define DEFAULT_STARTX X11BINDIR "/startx -- " X11BINDIR "/Xquartz" #define DEFAULT_SHELL "/bin/sh" @@ -635,6 +639,11 @@ main(int argc, char **argv, char **envp) /* The server must not run the PanoramiX operations. */ noPanoramiXExtension = TRUE; +#ifdef COMPOSITE + /* https://gitlab.freedesktop.org/xorg/xserver/-/issues/1409 */ + noCompositeExtension = TRUE; +#endif + /* Setup the initial crasherporter info */ strlcpy(__crashreporter_info_buff__, __crashreporter_info__base, sizeof(__crashreporter_info_buff__));