context: fix wrong VARIANT instead of LAYOUT getenv
authorRan Benita <ran234@gmail.com>
Mon, 10 Feb 2014 10:24:50 +0000 (12:24 +0200)
committerRan Benita <ran234@gmail.com>
Mon, 10 Feb 2014 10:26:40 +0000 (12:26 +0200)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/context-priv.c

index 9b81c36..999ece9 100644 (file)
@@ -149,7 +149,7 @@ const char *
 xkb_context_get_default_variant(struct xkb_context *ctx)
 {
     const char *env = NULL;
-    const char *layout = secure_getenv("XKB_DEFAULT_VARIANT");
+    const char *layout = secure_getenv("XKB_DEFAULT_LAYOUT");
 
     /* We don't want to inherit the variant if they haven't also set a
      * layout, since they're so closely paired. */