Commit 043eda874df935c4554e328064beca8e35dc2306

Ran Benita 2014-02-10T12:24:50

context: fix wrong VARIANT instead of LAYOUT getenv Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/context-priv.c b/src/context-priv.c
index 9b81c36..999ece9 100644
--- a/src/context-priv.c
+++ b/src/context-priv.c
@@ -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. */