You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
2 years ago
|
diff --git a/sway/config.c b/sway/config.c
|
||
|
index 1f2bb68604..f5efa98a8e 100644
|
||
|
--- a/sway/config.c
|
||
|
+++ b/sway/config.c
|
||
|
@@ -37,7 +37,7 @@ struct sway_config *config = NULL;
|
||
|
|
||
|
static struct xkb_state *keysym_translation_state_create(
|
||
|
struct xkb_rule_names rules) {
|
||
|
- struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
|
||
|
+ struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_SECURE_GETENV);
|
||
|
struct xkb_keymap *xkb_keymap = xkb_keymap_new_from_names(
|
||
|
context,
|
||
|
&rules,
|
||
|
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c
|
||
|
index 3f4a7289b9..45a588ecbf 100644
|
||
|
--- a/sway/input/keyboard.c
|
||
|
+++ b/sway/input/keyboard.c
|
||
|
@@ -754,7 +754,7 @@ static void handle_xkb_context_log(struct xkb_context *context,
|
||
|
|
||
|
struct xkb_keymap *sway_keyboard_compile_keymap(struct input_config *ic,
|
||
|
char **error) {
|
||
|
- struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
|
||
|
+ struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_SECURE_GETENV);
|
||
|
if (!sway_assert(context, "cannot create XKB context")) {
|
||
|
return NULL;
|
||
|
}
|
||
|
|