From 08928afb0500d46b0caa0a1d1244dee2ed80e6a0 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 23 Oct 2006 02:51:52 +0300 Subject: [PATCH] Xnest: disable XKB, reshuffle code Disable XKB, as we can't yet use it; move Composite disabling to ddxInitGlobals, along with XKB. --- hw/xnest/Args.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hw/xnest/Args.c b/hw/xnest/Args.c index 5d0a0c02d..c2e8b0db7 100644 --- a/hw/xnest/Args.c +++ b/hw/xnest/Args.c @@ -53,18 +53,21 @@ Window xnestParentWindow = 0; /* ddxInitGlobals - called by |InitGlobals| from os/util.c */ void ddxInitGlobals(void) { -} - -int -ddxProcessArgument (int argc, char *argv[], int i) -{ - #ifdef COMPOSITE /* XXX terrible hack */ extern Bool noCompositeExtension; noCompositeExtension = TRUE; #endif +#ifdef XKB + extern Bool noXkbExtension; + noXkbExtension = TRUE; +#endif +} + +int +ddxProcessArgument (int argc, char *argv[], int i) +{ if (!strcmp(argv[i], "-display")) { if (++i < argc) { xnestDisplayName = argv[i];