From e0cbb207438e330c5c311b1469e049802daa255d Mon Sep 17 00:00:00 2001 From: Eugene Kuznetsov Date: Sun, 19 Nov 2023 22:03:19 -0800 Subject: [PATCH] Passing information about active keyboard layout to state_empty (without modifiers) --- intern/ghost/intern/GHOST_SystemWayland.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/intern/ghost/intern/GHOST_SystemWayland.cc b/intern/ghost/intern/GHOST_SystemWayland.cc index cee553a46e8..4bcc54b9800 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cc +++ b/intern/ghost/intern/GHOST_SystemWayland.cc @@ -4357,6 +4357,7 @@ static void keyboard_handle_modifiers(void *data, GWL_Seat *seat = static_cast(data); xkb_state_update_mask(seat->xkb.state, mods_depressed, mods_latched, mods_locked, 0, 0, group); + xkb_state_update_mask(seat->xkb.state_empty, 0, 0, 0, 0, 0, group); /* A modifier changed so reset the timer, * see comment in #keyboard_handle_key regarding this behavior. */ -- 2.30.2