aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/composite
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-03-29 23:07:18 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-08 08:23:35 +0200
commit555cbcb325887b3e19bf7ffc3890f60485681e54 (patch)
treeb88aa4b39c18377a7b6ed8fe7b77283f18405293 /nx-X11/programs/Xserver/composite
parent2739d0868f849a186f7b06cb0032ee0d2c599532 (diff)
downloadnx-libs-555cbcb325887b3e19bf7ffc3890f60485681e54.tar.gz
nx-libs-555cbcb325887b3e19bf7ffc3890f60485681e54.tar.bz2
nx-libs-555cbcb325887b3e19bf7ffc3890f60485681e54.zip
nxagent: add command line switch to enable composite
We have it disabled by default but there hasn't been a way to enable it.
Diffstat (limited to 'nx-X11/programs/Xserver/composite')
-rw-r--r--nx-X11/programs/Xserver/composite/compext.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/composite/compext.c b/nx-X11/programs/Xserver/composite/compext.c
index 8513c6d73..a63b02075 100644
--- a/nx-X11/programs/Xserver/composite/compext.c
+++ b/nx-X11/programs/Xserver/composite/compext.c
@@ -39,6 +39,7 @@ static DevPrivateKeyRec CompositeClientPrivateKeyRec;
#define CompositeClientPrivateKey (&CompositeClientPrivateKeyRec)
#else /* !defined(NXAGENT_SERVER) */
+#include "../hw/nxagent/Options.h"
static int CompositeClientPrivIndex = -1;
#endif /* !defined(NXAGENT_SERVER) */
@@ -623,6 +624,11 @@ CompositeExtensionInit (void)
/* Assume initialization is going to fail */
noCompositeExtension = TRUE;
+#ifdef NXAGENT_SERVER
+ if (!nxagentOption(Composite))
+ return;
+#endif
+
fprintf(stderr, "COMPOSITE: trying to initialize extension.\n");
for (s = 0; s < screenInfo.numScreens; s++) {