aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Pigott <ronan@rjp.ie>2022-12-14 19:12:36 -0700
committerSimon Ser <contact@emersion.fr>2023-01-11 11:32:09 +0100
commit2f2cdd60def006f6d3cbe318f9edd7d68fcb239a (patch)
treea6f980693918ff12a9c7b1c97b481473c3ad9360
parent3061999ec5ab25524e5a4ba5f5518c19bf57ce95 (diff)
input: enable user xkb configs with cap_sys_nice
-rw-r--r--meson.build2
-rw-r--r--sway/config.c2
-rw-r--r--sway/input/keyboard.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index fa008332..84e7c6c5 100644
--- a/meson.build
+++ b/meson.build
@@ -68,7 +68,7 @@ wayland_server = dependency('wayland-server', version: '>=1.21.0')
wayland_client = dependency('wayland-client')
wayland_cursor = dependency('wayland-cursor')
wayland_protos = dependency('wayland-protocols', version: '>=1.24')
-xkbcommon = dependency('xkbcommon')
+xkbcommon = dependency('xkbcommon', version: '>=1.5.0')
cairo = dependency('cairo')
pango = dependency('pango')
pangocairo = dependency('pangocairo')
diff --git a/sway/config.c b/sway/config.c
index 1f2bb686..f5efa98a 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 3f4a7289..45a588ec 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;
}