From b4c61e5ba53ce7db5c5157364e6b64f764630d1d Mon Sep 17 00:00:00 2001 From: fsh Date: Mon, 8 Jul 2024 16:14:07 +0200 Subject: [PATCH] x11: Properly update XKB group state (#13931) Pass on all the XkbStateNotify information to XKB. > "All parameters must always be passed, or the resulting state may be incoherent." > https://docs.rs/xkbcommon/latest/xkbcommon/xkb/struct.State.html#method.update_mask Previously, many keymaps using multiple groups/layers would not work and remain in group0. Release Notes: - Fixed handling of Xkb keymap groups on X11. --- crates/gpui/src/platform/linux/x11/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gpui/src/platform/linux/x11/client.rs b/crates/gpui/src/platform/linux/x11/client.rs index 1a8e07952f6341807276866769870d80e05a586f..9fb83bc5c7b87c6ada8b37d5f213fd5c0bc7198e 100644 --- a/crates/gpui/src/platform/linux/x11/client.rs +++ b/crates/gpui/src/platform/linux/x11/client.rs @@ -618,8 +618,8 @@ impl X11Client { event.base_mods.into(), event.latched_mods.into(), event.locked_mods.into(), - 0, - 0, + event.base_group as u32, + event.latched_group as u32, event.locked_group.into(), );