From 08c64c166fad11dbfa09c439f76e679f5cbb30f3 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sat, 25 May 2024 14:10:48 +0300 Subject: [PATCH] backend/x11: send correct keyboard layout --- backend/x11/input_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/x11/input_device.c b/backend/x11/input_device.c index c3536531..c2ed6fd3 100644 --- a/backend/x11/input_device.c +++ b/backend/x11/input_device.c @@ -129,7 +129,7 @@ void handle_x11_xinput_event(struct wlr_x11_backend *x11, } wlr_keyboard_notify_modifiers(&x11->keyboard, ev->mods.base, - ev->mods.latched, ev->mods.locked, ev->mods.effective); + ev->mods.latched, ev->mods.locked, ev->group.effective); send_key_event(x11, ev->detail - 8, WL_KEYBOARD_KEY_STATE_PRESSED, ev->time); x11->time = ev->time; break; @@ -139,7 +139,7 @@ void handle_x11_xinput_event(struct wlr_x11_backend *x11, (xcb_input_key_release_event_t *)event; wlr_keyboard_notify_modifiers(&x11->keyboard, ev->mods.base, - ev->mods.latched, ev->mods.locked, ev->mods.effective); + ev->mods.latched, ev->mods.locked, ev->group.effective); send_key_event(x11, ev->detail - 8, WL_KEYBOARD_KEY_STATE_RELEASED, ev->time); x11->time = ev->time; break;