From 8aa14f0d39a32d403a1fd819b839a3fce6e2903c Mon Sep 17 00:00:00 2001 From: Pierre Le Marre Date: Tue, 30 Jan 2024 09:19:34 +0100 Subject: [PATCH] simple-im: Fix modifiers There is a typo in the call to `zwp_input_method_context_v1_modifiers`: the `mods_latched` and `mods_locked` arguments have wrong values. Fixed by forwarding the correct masks. Signed-off-by: Pierre Le Marre --- clients/simple-im.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/simple-im.c b/clients/simple-im.c index a5b834ded..b3cf4a858 100644 --- a/clients/simple-im.c +++ b/clients/simple-im.c @@ -276,8 +276,8 @@ input_method_keyboard_modifiers(void *data, keyboard->modifiers |= MOD_SHIFT_MASK; zwp_input_method_context_v1_modifiers(context, serial, - mods_depressed, mods_depressed, - mods_latched, group); + mods_depressed, mods_latched, + mods_locked, group); } static const struct wl_keyboard_listener input_method_keyboard_listener = {