From 008552fe4203e295c493230de7ec29041b5a2849 Mon Sep 17 00:00:00 2001 From: triallax Date: Mon, 12 Jun 2023 15:59:54 +0100 Subject: [PATCH] sway: fix `bindsym --to-code`. --- srcpkgs/sway/patches/7633.patch | 34 +++++++++++++++++++++++++++++++++ srcpkgs/sway/template | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/sway/patches/7633.patch diff --git a/srcpkgs/sway/patches/7633.patch b/srcpkgs/sway/patches/7633.patch new file mode 100644 index 000000000000..d7e0d5c94881 --- /dev/null +++ b/srcpkgs/sway/patches/7633.patch @@ -0,0 +1,34 @@ +From 872552b4d636379fca795d5db1aae71034d363f8 Mon Sep 17 00:00:00 2001 +From: Marko +Date: Sat, 10 Jun 2023 19:55:24 +0200 +Subject: [PATCH] Fix #7535 + +--- +https://github.com/swaywm/sway/pull/7633 + + sway/input/input-manager.c | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c +index 1115ba5ecc..5f7dfb4284 100644 +--- a/sway/input/input-manager.c ++++ b/sway/input/input-manager.c +@@ -532,6 +532,18 @@ static void retranslate_keysyms(struct input_config *input_config) { + return; + } + } ++ ++ for (int i = 0; i < config->input_type_configs->length; ++i) { ++ struct input_config *ic = config->input_type_configs->items[i]; ++ if (ic->xkb_layout || ic->xkb_file) { ++ // this is the first config with xkb_layout or xkb_file ++ if (ic->identifier == input_config->identifier) { ++ translate_keysyms(ic); ++ } ++ ++ return; ++ } ++ } + } + + static void input_manager_configure_input( diff --git a/srcpkgs/sway/template b/srcpkgs/sway/template index 6a735c82e88f..25e4d85a08d8 100644 --- a/srcpkgs/sway/template +++ b/srcpkgs/sway/template @@ -1,7 +1,7 @@ # Template file for 'sway' pkgname=sway version=1.8.1 -revision=1 +revision=2 build_style=meson configure_args="-Dwerror=false -Db_ndebug=false" conf_files="/etc/sway/config"